!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("rb_wixui.thunderbolt[ProGallery_Default]",["lodash","react","reactDOM"],t):"object"==typeof exports?exports["rb_wixui.thunderbolt[ProGallery_Default]"]=t(require("lodash"),require("react"),require("react-dom")):e["rb_wixui.thunderbolt[ProGallery_Default]"]=t(e._,e.React,e.ReactDOM)}("undefined"!=typeof self?self:this,(function(e,t,i){return function(){var r,o,a,s,n={37757:function(e,t,i){var r=i(82016);e.exports=r.create("ProGallery669818973",{classes:{root:"ProGallery669818973__root",container:"ProGallery669818973__container","container-prerender":"ProGallery669818973__container-prerender","pro-gallery-container":"pro-gallery-parent-container",item:"gallery-item-container","gallery-arrows":"nav-arrows-container","gallery-arrows-no-container":"nav-arrows-container only-arrows",info:"ProGallery669818973__info",fullscreen:"ProGallery669818973__fullscreen",loadmore:"show-more",x:"ProGallery669818973__x"},vars:{overFreemiumBanner:"--ProGallery669818973-overFreemiumBanner",overFullscreen:"--ProGallery669818973-overFullscreen"},stVars:{"--variant-count":"var(--variant-count)"},keyframes:{},layers:{}},"",-1,e.id)},82016:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createRenderable=t.create=void 0;t.create=function(e,t,i,r,o,a){const s={namespace:e,classes:t.classes,keyframes:t.keyframes,layers:t.layers,vars:t.vars,stVars:t.stVars,cssStates:function(e){const t=[];for(const i in e){const r=n(i,e[i]);r&&t.push(r)}return t.join(" ")},style:l,st:l,$id:o,$depth:r,$css:i};function n(t,i){if(!1===i||null==i||i!=i)return"";if(!0===i)return function(t){return`${e}--${t}`}(t);return function(t,i){return`${e}---${t}-${i.length}-${i.replace(/\s/gm,"_")}`}(t,i.toString())}function l(){const e=[];for(let t=0;t{const i=t.dto.imageToken||t.dto.token;return i?(e=e.replace(/,wm_.+\//g,"/"))+`?token=${i}`:e},s=i(85901);const n=function(e){let{imageToken:t,staticMediaUrls:i,useOptimizedImageFormat:r,isPrerenderMode:o,experimentalFeatures:a}=void 0===e?{}:e;return e=>p({...e,imageToken:t,staticMediaUrls:i,isPrerenderMode:o,shouldUseOptimizedImageFormat:r??!0,experimentalFeatures:a})},l=function(){for(var e=arguments.length,t=new Array(e),i=0;i{const i=/(^https?)|(^data)|(^blob)/.test(e),r=0===e.indexOf(t),o=e.indexOf("preventResize")>0;return i&&(!r||o)},c=(e,t)=>u(e,t)?e:l(t,e);const h=33e6,m=e=>{let{item:t,originalUrl:i,resizeMethod:r,requiredWidth:l,requiredHeight:u,sharpParams:m,focalPoint:d,useImageOptimization:p=!1,devicePixelRatio:g=1,WIX_MEDIA_PREFIX:_,isPrerenderMode:v,useAvifFormat:f}=e;const P=t.maxHeight,b=t.maxWidth;if(v){const{nextWidth:e,nextHeight:i}=((e,t,i,r)=>{if(e>1||t>1){const o=Math.min(i.maxWidth,480*Math.ceil(e/480));let a=t/e;return"fit"===r&&(a=i.originalHeight/i.originalWidth),{nextWidth:o,nextHeight:Math.ceil(o*a)}}return{nextWidth:e,nextHeight:t}})(l,u,t,n());l=e,u=i}const I=Math.max(s.G.isMobile()&&!s.G.isSSR()?o.Z.screen.width/320:1,1);l=Math.ceil(l*g*I),u=Math.ceil(u*g*I);const S=b*P,{maxHeight:E,maxWidth:O}=function(e,t,i){if(e*t>i){const r=t/e,o=Math.floor(Math.sqrt(i/r));return{maxWidth:o,maxHeight:Math.floor(o*r)}}return{maxWidth:e,maxHeight:t}}(l,u,S{if(!d||d.every((e=>.5===e)))return r=y({resizeMethod:r,isPrerenderMode:v,requiredHeight:u,requiredWidth:l}),`/v1/${r}/w_${l},h_${u}`;{const e=d.map((e=>String(Math.floor(100*e)/100).slice(0,4))).join("_");return`/v1/fill/w_${l},h_${u},fp_${e}`}})(),T+=(()=>{var e,t,r,o,a,s;(m=m||{},m.quality||(m.quality=90),m.quality=Math.min(90,m.quality),!0===m.allowUsm)&&(m.usm.usm_a=Math.min(5,Math.max(0,(null==(e=m.usm)?void 0:e.usm_a)||(null==(t=m.usm)||null==(t=t.usm)?void 0:t.a)||0)),m.usm.usm_r=Math.min(128,Math.max(0,(null==(r=m.usm)?void 0:r.usm_r)||(null==(o=m.usm)||null==(o=o.usm)?void 0:o.r)||0)),m.usm.usm_t=Math.min(1,Math.max(0,(null==(a=m.usm)?void 0:a.usm_t)||(null==(s=m.usm)||null==(s=s.usm)?void 0:s.t)||0)));let n="";return n+=",q_"+m.quality,m.blur&&!(i.indexOf(".png")>0||i.indexOf(".gif")>0)&&(n+=",blur_"+m.blur),n+=m.usm&&m.usm.usm_r?",usm_"+m.usm.usm_r.toFixed(2)+"_"+m.usm.usm_a.toFixed(2)+"_"+m.usm.usm_t.toFixed(2):"",n})(),p&&f?(T+=",enc_avif,quality_auto",T+="/"+i.match(/[^/][\w.~]*$/)[0]):T+="/"+(p?i.replace(/[^.]\w*$/,"webp"):i).match(/[^/][\w.~]*$/)[0],T=a(T,t),T},d=e=>({jpg:"jpeg",jpeg:"jpeg",png:"png",gif:"gif"}[e.match(/[^\.]\w*$/)[0]]||"jpeg"),p=e=>{let{item:t,originalUrl:i,resizeMethod:o,requiredWidth:a,requiredHeight:s,sharpParams:n={},focalPoint:h=[.5,.5],createMultiple:m=!1,imageToken:d="",staticMediaUrls:p={},shouldUseOptimizedImageFormat:y,isPrerenderMode:_,experimentalFeatures:v}=e;if(!i)return;const f=null!=p&&p.staticMediaUrl?p.staticMediaUrl:"https://static.wixstatic.com/media/",P=null!=p&&p.staticVideoUrl?p.staticVideoUrl:"https://video.wixstatic.com/",b=t.dto.imageToken||t.dto.token||d;i=((e,t)=>{if(e.indexOf("preventResize")>=0)return e;e=e.replace(t,"");const i=/(\/v\d\/(fill|fit|crop)\/(((w|h|x|y|scl|al|q)_[cf\d]*)\,?)*){1,}/.exec(e);return i&&i.index>0?e.substr(0,i.index):e})(i,f);const I={item:t,originalUrl:i,resizeMethod:o,requiredWidth:a,requiredHeight:s,sharpParams:n,focalPoint:h,isPrerenderMode:_};return o===r.Z.resizeMethods.VIDEO?((e,t)=>{let{item:i,originalUrl:r,requiredHeight:o}=e,a=r;if(i.qualities&&i.qualities.length){let e="/";const r=i.qualities.filter((e=>"mp4"===e.formats[0]));r.length>1&&r[0].height>r[1].height&&r.reverse();for(let s,n=0;s=r[n];n++)if(s.height>=o||!r[n+1]){e+=s.quality;for(let r,o=0;r=s.formats[o];o++)a=l(t,"video/",i.url,e,r,"/file."+r);break}return a}})({item:t,originalUrl:i,resizeMethod:o,requiredWidth:a,requiredHeight:s,sharpParams:n,focalPoint:h,isPrerenderMode:_},P):u(i,f)?i:"full"!==o||b?g({createMultiple:m,params:I,WIX_MEDIA_PREFIX:f,shouldUseOptimizedImageFormat:y,originalUrl:i,hasImageToken:b,experimentalFeatures:v}):c(i,f)},g=e=>{let{createMultiple:t,params:i,WIX_MEDIA_PREFIX:r,shouldUseOptimizedImageFormat:o,originalUrl:a,hasImageToken:s,experimentalFeatures:n}=e;const l=null==n?void 0:n.useImageAvifFormat,u=(e,t,o)=>e.map((e=>m({...i,useImageOptimization:t,devicePixelRatio:e,WIX_MEDIA_PREFIX:r,useAvifFormat:o})+` ${e}x`)).join(", ");if(t){const e=[];if(o&&l&&!s?e.push({type:d(a),url:m({...i,devicePixelRatio:1,WIX_MEDIA_PREFIX:r,useImageOptimization:!0,useAvifFormat:!0}),dpr:u([1,2,3,4,5],!0,!0)}):(o&&e.push({type:"webp",url:m({...i,useImageOptimization:!0,devicePixelRatio:1,WIX_MEDIA_PREFIX:r}),dpr:u([1,2,3,4,5],!0)}),e.push({type:d(a),url:m({...i,useImageOptimization:!1,devicePixelRatio:1,shouldUseOptimizedImageFormat:o,WIX_MEDIA_PREFIX:r}),dpr:u([1,2,3,4,5],!1)})),!s){const t=c(a,r);return[{type:d(a),url:t,dpr:[1,2,3,4,5,6,7,8].map((e=>`${t} ${e}x`)).join(", "),forPrinting:!0},...e]}return e}return m({...i,WIX_MEDIA_PREFIX:r})},y=e=>{let{resizeMethod:t,isPrerenderMode:i,requiredHeight:o,requiredWidth:a}=e,s=t===r.Z.resizeMethods.FIT||i?r.Z.resizeMethods.FIT:r.Z.resizeMethods.FILL;return o<=1&&a<=1&&(s=r.Z.resizeMethods.FILL),s}},17229:function(e,t,i){"use strict";i.d(t,{Z:function(){return d}});const r=()=>({}),o=2560,a=1440,s={y:0,x:0,width:o,height:a,innerWidth:o,innerHeight:a,clientWidth:o,clientHeight:a},n={parentNode:{...s,getBoundingClientRect:()=>s,removeChild:r,appendChild:r,setAttribute:r},offsetWidth:o,offsetheight:a,removeChild:r,appendChild:r,setAttribute:r},l={...s,...n,getBoundingClientRect:()=>s},u={initCustomEvent:r,createEvent:r,composedPath:r,initEvent:r,preventDefault:r,stopImmediatePropagation:r,stopPropagation:r},c={addEventListener:r,removeEventListener:r,createEvent:()=>u,createElement:()=>l,getElementById:()=>l,getElementsByClassName:()=>[l],getElementsByTagName:()=>[l],querySelector:()=>[l],documentElement:l,activeElement:l,style:s,...s};c.body=c;const h={isMock:!0,isSSR:!0,orientation:0,devicePixelRatio:1,scrollTop:0,addEventListener:r,removeEventListener:r,createEvent:r,CustomEvent:r,screen:s,open:r,petri:{},search:{},location:{href:"http://mock.wix.com/",protocol:"http:",host:"mock.wix.com",hostname:"mock.wix.com",port:"",pathname:"/",search:"",hash:""},postMessage:r,requestAnimationFrame:r,dispatchEvent:r,document:c,getComputedStyle:r,localStorage:{},frames:[],...s};h.parent=h;var m=h;var d=(new class{constructor(){this.reset()}windowIsAvailable(){try{return"undefined"!=typeof window}catch(e){return!1}}reset(){this.isMock=!this.windowIsAvailable(),this.window=this.isMock?m:window,this.isMock&&(this.window.mockInstanceId=Math.floor(1e5*Math.random()))}}).window},85901:function(e,t,i){"use strict";i.d(t,{G:function(){return l},Z:function(){return n}});var r=i(60484),o=i(72124),a=i(17229);const s=void 0;class n{constructor(){this._cache={},this._hash2int={},this._params={},this._useCache=this.shouldUseCache(),this.setIsWixMobile=this.setIsWixMobile.bind(this)}shouldUseCache(){let e=!0;try{e=a.Z&&a.Z.Wix&&a.Z.Wix.Utils&&a.Z.Wix.Utils.getViewMode()}catch(e){}return!!this.isUndefined(e)||"editor"!==e&&"preview"!==e}isUndefined(e){return void 0===e}getOrPutFromCache(e,t){return!this._useCache||this.isSSR()?t():(void 0!==this._cache[e]||(this._cache[e]=t()),this._cache[e])}isDemo(){return"1"===this.parseGetParam("demo")}isInWix(){return this.isTest()||this.getOrPutFromCache("isInWix",(()=>{try{return top!==self&&("progallery.wix.com"===document.location.host||"progallery.wixapps.net"===document.location.host)&&document.location.search.indexOf("instance=")>=0}catch(e){return!1}}))}isSemiNative(){try{return a.Z.semiNative}catch(e){return!1}}hashToInt(e,t,i){let r=0;if(this.isUndefined(e)||0===e.length)return r;if(!this._hash2int[e]){for(let t=0;t{r=t.split("="),r[0]===e&&(i=decodeURIComponent(r[1]))})),!i){const t=decodeURIComponent(o.pathname).split("?")[1];if(!t)return"";t.split("&").forEach((t=>{r=t.split("="),r[0]===e&&(i=decodeURIComponent(r[1]))}))}return this._params[e]=i,i}catch(e){return!1}}parsePathParam(e){const t=location.pathname.split("/");for(let i=0;i=0)return r}return""}parseHashParam(e){let t="",i=[];const r=location.href.split("#")[1]||"";return r?(r.substr(1).split("&").forEach((r=>{i=r.split("="),i[0]===e&&(t=decodeURIComponent(i[1]))})),t):""}stripSlashes(e){let t="";return"string"==typeof e&&(t=e.replace(/\\\//g,"/").replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/\\0/g,"\0").replace(/\\\\/g,"\\")),t}parseStringObject(e){if("string"!=typeof e)return e;const t=this.stripSlashes(e);if("string"==typeof e&&/^[\],:{}\s]*$/.test(t.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))try{return JSON.parse(t)}catch(e){}return t}isWixMobile(){const e=()=>{const e=this.parseGetParam("deviceType")||a.Z.deviceType;return!!("true"===this.parseGetParam("showMobileView"))||(e?String(e).toLowerCase().indexOf("mobile")>=0:void 0)};return this.isSite()?this.getOrPutFromCache("isWixMobile",e):e()}isUserAgentMobile(){try{const e=()=>{let e=!1;var t;return t=navigator.userAgent||navigator.vendor||a.Z.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|pixel|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0),e};return this.isSite()?this.getOrPutFromCache("isUserAgentMobile",e):e()}catch(e){return!1}}setIsWixMobile(e){a.Z.deviceType=e?"mobile":"desktop",this._cache.isWixMobile=e,this._cache.isMobile=e}isMobile(){const e=()=>{const e=this.isWixMobile(),t=this.isUserAgentMobile();return this.isUndefined(e)?t:e};return!this.isTest()&&(this.isSite()?this.getOrPutFromCache("isMobile",e):e())}isTest(){try{return a.Z.isTest}catch(e){return!1}}isDev(){return this.getOrPutFromCache("isDev",(()=>this.isLocal()||this.isOOI()&&!1||this.shouldDebug("ph_local")||!!this.parseGetParam("debug")||"true"===(this.safeLocalStorage()||{}).forceDevMode))}isVerbose(){return!this.isTest()&&("true"===(this.safeLocalStorage()||{}).forceDevMode||this.shouldDebug("ph_verbose"))}isLocal(){return this.getOrPutFromCache("isLocal",(()=>{const e=a.Z.location.hostname||"";return"local.wix.com"===e||"0.0.0.0"===e||e.indexOf("localhost")>=0||null!==/([0-9]{1,3}\.){3}[0-9]{1,3}:[0-9]{1,5}/.exec(e)}))}isStoreGallery(){return this.getOrPutFromCache("isStoreGallery",(()=>{if(this.isSemiNative())return!1;try{return a.Z.location.search.toLowerCase().indexOf("isstore")>-1}catch(e){return this.isDev()&&console.error("cant find window",e),!1}}))}isDemoMode(){return s&&s.Utils&&s.Utils.getInstanceValue&&s.Utils.getInstanceValue("demoMode")}isSSR(){return!!a.Z.isMock}isOOI(){return this.isSSR()||"undefined"!=typeof top&&"undefined"!=typeof self&&(top===self||self.location.href.includes("AlbumsGOGOOI")||self.location.origin.includes("editor.wix.com")||self.location.origin.includes("blocks.wix.com")||self.location.origin.includes("editorx.com"))}isPremium(){return this.getOrPutFromCache("isPremium",(()=>{const e=this.shouldDebug("ph_force_premium"),t=this.shouldDebug("ph_force_freemium");return!!e||!t}))}updateViewMode(e){if("string"==typeof e&&this.isOOI())return this._cache.viewMode=e.toLowerCase(),this._cache.viewMode;try{if(a.Z&&a.Z.Wix&&a.Z.Wix.Utils&&a.Z.Wix.Utils.getViewMode)return this._cache.viewMode=a.Z.Wix.Utils.getViewMode(),this._cache.viewMode}catch(e){return!1}}getViewModeFromCache(){return this.getOrPutFromCache("viewMode",(()=>{try{if(this.isOOI()){this.isVerbose()&&console.warn("OOI - viewMode not found, returning site if not in wix.com(old test)");try{return a.Z.location.host.includes("wixapps.net")?"undefined":"site"}catch(e){return"undefined"}}return this.isSSR()?"site":a.Z&&a.Z.Wix&&a.Z.Wix.Utils&&a.Z.Wix.Utils.getViewMode?a.Z.Wix.Utils.getViewMode():"undefined"}catch(e){return!1}}))}isEditor(){return(this.isOOI()||!!this.isInWix())&&"editor"===this.getViewModeFromCache()}isPreview(){return(this.isOOI()||!!this.isInWix())&&"preview"===this.getViewModeFromCache()}isSite(){return this.isOOI()?"site"===this.getViewModeFromCache():!this.isEditor()&&!this.isPreview()}getUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=Math.floor(16*Math.random())||0;return"x"===e?t.toString(16):e}))}isInSettings(){return"1"===this.parseGetParam("expandsettingsmode")}isExternalUrl(e){return/(^https?)|(^data)|(^blob)/.test(e)}isMobileViewer(){return this.getOrPutFromCache("isMobileViewer",(()=>{const e=this.isWixMobile(),t=this.isUserAgentMobile();return e&&!t}))}isiOS(){return this.getOrPutFromCache("isiOS",(()=>{try{return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!a.Z.MSStream}catch(e){return!1}}))}isiPhone(){return this.getOrPutFromCache("isiPhone",(()=>{try{return/iPhone/.test(navigator.userAgent)&&!a.Z.MSStream}catch(e){return!1}}))}isTouch(){return this.getOrPutFromCache("isTouch",(()=>{try{return this.isMobile()||"ontouchstart"in a.Z.document.documentElement}catch(e){return!1}}))}browserIs(e){return this.getOrPutFromCache("browsers",(()=>{const e={chrome:!1,chromeIos:!1,explorer:!1,firefox:!1,safari:!1,opera:!1};try{return e.chrome=navigator.userAgent.indexOf("Chrome")>-1,e.chromeIos=navigator.userAgent.indexOf("CriOS")>-1,e.explorer=navigator.userAgent.indexOf("MSIE")>-1||!!navigator.userAgent.match(/Trident.*rv\:11\./),e.firefox=navigator.userAgent.indexOf("Firefox")>-1,e.safari=navigator.userAgent.indexOf("Safari")>-1,e.opera=navigator.userAgent.toLowerCase().indexOf("op")>-1,e.chrome&&e.safari&&(e.safari=!1),e.chrome&&e.opera&&(e.chrome=!1),e}catch(t){return e}}))[e]}isPlayground(){if(this.isInWix())return!1;try{let e=!1;try{e=top.location.href.indexOf("playground.html")>0}catch(t){e=!1}return e}catch(e){return!1}}isInAlbumsBuilder(){if(!this.isInWix())return!1;try{return a.Z&&a.Z.debugApp&&a.Z.debugApp.indexOf("ph_source_albums")>-1}catch(e){return!1}}isWixDomain(){try{return a.Z.location.href.indexOf("wixapps.net")>=0}catch(e){return!1}}isLandscape(){return!this.isSemiNative()&&this.getOrPutFromCache("isLandscape",(()=>{if(!this.isMobile())return!1;try{if(this.isUndefined(a.Z.orientation)){const e=a.Z.matchMedia("(orientation: landscape)");return!(!e||!0!==e.matches)}return 90===a.Z.orientation||-90===a.Z.orientation}catch(e){return!1}}))}isOnBoarding(){try{const e=(0,o.Qc)(a.Z.location.search);return!!e.viewMode&&"onboarding"===e.viewMode.toLowerCase()}catch(e){return!1}}isAccessibilityEnabled(){return this.getOrPutFromCache("isAccessibilityEnabled",(()=>{if(!this.isSite())return!1;if(this.isOOI())return!1;const e=this.shouldDebug("accessibility");if(s&&"function"==typeof s.isVisualFocusEnabled)try{s.isVisualFocusEnabled((t=>t||e))}catch(e){}return e}))}isDebugBuild(){try{return!1}catch(e){return!1}}getDeviceType(){return this.isWixMobile()?"mobile":"desktop"}safeLocalStorage(){try{return localStorage||a.Z}catch(e){return a.Z}}shouldDebug(e){try{return!!this.safeLocalStorage()[e]||(a.Z.debugApp||"").indexOf(e)>=0||(this.parseGetParam("debugApp")||"").indexOf(e)>=0}catch(e){return!1}}shouldLog(e){return this.shouldDebug("ph_log_"+e)}getDateCreatedTicksFromStr(e){return!1===isNaN(Date.parse(e))?Date.parse(e):Date.parse("2017-07-09T14:08:21.000Z")}deviceHasMemoryIssues(){return this.isiOS()}getUrlPrefix(e){try{return a.Z.location.protocol+"//"+(!e&&this.isLocal()?"local.wix.com:3001":"progallery.wixapps.net")+"/"}catch(e){return console.error("getUrlPrefix",{e:e}),"http://progallery.wixapps.net/"}}getFullscreenSectionId(){return this.isStoreGallery()?"fullscreen_store_page":"fullscreen_page"}getApiUrlPrefix(){return this.getUrlPrefix(!0)+"api/v1/"}generateUrl(e,t){t=t||{};const i=this.isStoreGallery(),r=this.getUrlPrefix()+e;i&&(t.isStore=!0);const a=(0,o.Pz)(t);return a?r+"?"+a:r}getTextEditorUrl(){return this.generateUrl("text-editor.html")}getManageMediaUrl(){return this.generateUrl("photos.html")}getExpandSettingsUrl(e){return this.generateUrl("settings-expand.html",e)}getSettingsWatermarkDisableUrl(){return this.generateUrl("settings-watermark-disable.html")}getSettingsAddonsUrl(e){return void 0===e&&(e={}),this.generateUrl("settings-addons.html",e)}getProviderModalUrl(e){return void 0===e&&(e={}),this.generateUrl("provider-modal.html",e)}getTabIndex(e){const t=["currentGalleryItem","loadMoreButton","slideshowNext","slideshowPrev","currentThumbnail","slideshowLove","slideshowShare","cartIcon","cartClose","cartFrame","fullscreenClose","fullscreenNext","fullscreenPrev","fullscreenInfo","fullscreenLink","fullscreenProvider","fullscreenCartButton","fullscreenCheckout","fullscreenExpand","fullscreenVideoPlay","fullscreenVideoBar","fullscreenVideoMute","fullscreenVideoVolume","fullscreenCartIcon","fullscreenDownload","fullscreenLove","fullscreenShare"].indexOf(e)+1;return t>=0&&this.isOOI()?0:t||-1}safeSessionStorage(){try{return sessionStorage}catch(e){return a.Z||{}}}getLocalStorage(){if(this.isDev())return this.safeSessionStorage();return this.safeLocalStorage()||this.safeSessionStorage()}setStateAndLog(e,t,i,o){if(this.isVerbose()){console.log(`State Change Called (${t})`,i);const a=(0,r.clone)(e.state);e.setState(i,(()=>{const i=(0,r.clone)(e.state),s=this.printableObjectsDiff(a,i,"state");(0,r.keys)(s).length>0&&console.log(`State Change Completed (${t})`,s),(0,r.isFunction)(o)&&o.bind(e)()}))}else e.setState(i,(()=>{(0,r.isFunction)(o)&&o.bind(e)()}))}printableObjectsDiff(e,t,i){void 0===i&&(i="");const o=e=>(""===e?e="''":this.isUndefined(e)&&(e="undefined"),(0,r.toString)(e)),a=(e,t,i)=>(0,r.reduce)(e,((e,s,n)=>((0,r.isEqual)(s,t[n])||((0,r.isArray)(t[n])?(s.length!==t[n].length&&(e[n+".length"]="["+s.length+"] => ["+t[n].length+"]"),e=(0,r.merge)(e,a(s,t[n],(i?i+".":"")+n))):(0,r.isObject)(t[n])?e=(0,r.merge)(e,a(s,t[n],(i?i+".":"")+n)):e[(i?i+".":"")+n]=o(s)+" => "+o(t[n])),e)),{});return a(e,t,i)}setExternalId(){try{const e=this.getUUID();this._setExternalId(e),this.setExternalIdTimeouts||(this.setExternalIdTimeouts={});for(let t=1e3;t<1e4;t+=1e3)this.setExternalIdTimeouts[t]&&clearTimeout(this.setExternalIdTimeouts[t]),this.setExternalIdTimeouts[t]=setTimeout((()=>this._setExternalId(e)),t)}catch(e){return console.error("Utils setExternalId - fail"),!1}}_setExternalId(e){s.Settings.setExternalId(e,(t=>{this.isDev()&&console.log("Utils setExternalId - success",e,t)}),(t=>{console.error("Utils setExternalId - fail",e,t)}))}isWebpSupported(){if(this.isTest())return!1;try{const e="object"==typeof document?a.Z.document.createElement("canvas"):{};return e.width=e.height=1,!!e.toDataURL&&5===e.toDataURL("image/webp").indexOf("image/webp")}catch(e){return!1}}getGalleryLayoutName(e){switch(e){case 0:return"Collage";case 1:return"Masonry";case 2:return"Grid";case 3:return"Thumbnails";case 4:return"Slider";case 5:return"Slideshow";case 6:return"Strip";case 7:return"Columns";case 8:return"Magic";case 10:return"Bricks";case 11:return"Mix";case 12:return"Alternate";default:return""}}shallowObjectsCompare(e,t){return Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every((i=>t.hasOwnProperty(i)&&e[i]===t[i]))}isSubset(e,t){return Object.keys(t).every((i=>t[i]===e[i]))}}const l=new n},78321:function(e,t,i){"use strict";i.d(t,{W:function(){return s}});var r=i(60484),o=i.n(r),a=i(85901);const s=o().throttle((async(e,t,i)=>{try{const r=await e(t,i);a.G.isiOS()?window.location.href=r:window.open(r,"_blank")}catch(e){console.error("Failed to get custom download url",e)}}),2e3)},98047:function(e,t,i){"use strict";i.d(t,{Z:function(){return a},y:function(){return s}});var r=i(85901),o=i(17229);class a extends r.Z{constructor(){super(),this._cache={},this._hash2int={},this._params={},this._refs={},this._params={}}getScreenWidth(){if(this.isPreview()&&this.isMobile())return 320;if(this.isTest()||this.isSemiNative())return 1920;try{return this.isLandscape()?Math.max(o.Z.screen.width,o.Z.screen.height):o.Z.screen.width}catch(e){return 1920}}getScreenHeight(){if(this.isTest()||this.isSemiNative())return 1200;try{return this.isLandscape()?Math.min(o.Z.screen.width,o.Z.screen.height):o.Z.screen.height}catch(e){return 1200}}getWixMobileFixRatio(){return o.Z.isSSR?1:320/o.Z.screen.width}fixViewport(){if(!this.isSemiNative()&&this.isInWix())try{if(this._cache.isLandscape=void 0,this.isSite()&&this.isMobile()&&!this.isMobileViewer()){const e=this.getViewportScaleRatio();o.Z.document.body.style.transform="scale("+e+")",o.Z.document.body.style.transformOrigin="0 0",o.Z.document.body.style.width=100/e+"%",o.Z.document.body.style.height=100/e+"%"}}catch(e){return!1}}isSmallScreen(){try{return(o.Z.innerWidth||o.Z.outerWidth)<640||this.isMobile()}catch(e){return!1}}isVerticalScreen(){try{return o.Z.innerWidth=0)&&i.document.location.href.indexOf("compId="+e)>=0&&(this._cache.galleries[e]=i)}catch(e){}return this._cache.galleries[e]}getViewportScaleRatio(){const e=void 0!==o.Z&&o.Z.isGallery,t=this.isiOS()&&e;return this.isOOI()||!this.isMobile()||this.isMobileViewer()||!this.isSite()||t?1:320/this.getScreenWidth()}getMobileEnabledClick(e){return this.isMobile()?{onTouchEnd:e}:{onClick:e}}getTopUrlParam(e){if(this.isUndefined(this._cache.params)&&(this._cache.params={}),this.isUndefined(this._cache.params[e]))try{this._cache.params[e]=top.location.search.replace("?","").split("&").map((t=>{const i=t.split("=");return i[0]===e&&i[1]||""})).join("")}catch(t){this._cache.params[e]=!1}return this._cache.params[e]}getGallerySettingsFromWindow(e){void 0===e&&(e=o.Z);try{let t=e&&e.prerenderedGallery&&e.prerenderedGallery.gallerySettings;if(t||(t=e&&e.prerenderedItem&&e.prerenderedItem.gallerySettings),t)return JSON.parse(this.stripSlashes(t))}catch(e){return{}}}getTitleOrFilename(e,t){return"string"==typeof e?e:t}getFullscreenUrlState(e,t,i,r,o){return`${e}/${t}/${i}/?i=${i}&p=${r}&s=${o}`}}const s=new a},91753:function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function i(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=t,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(r,o,function(t){return e[t]}.bind(null,o));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="https://static.parastorage.com/services/video-gallery-sdk/1.489.0/",i(i.s=1)}([ /*!*****************************************!*\ !*** ../node_modules/nanoajax/index.js ***! \*****************************************/ /*! no static exports found */ /*! exports used: ajax */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,i){(function(e){var i=["responseType","withCredentials","timeout","onprogress"];function r(e,t,i){e[t]=e[t]||i}t.ajax=function(t,o){var a=t.headers||{},s=t.body,n=t.method||(s?"POST":"GET"),l=!1,u=t.cors&&e.XDomainRequest&&!/MSIE 1/.test(navigator.userAgent)?new XDomainRequest:e.XMLHttpRequest?new XMLHttpRequest:void 0;function c(e,t){return function(){l||(o(void 0===u.status?e:u.status,0===u.status?"Error":u.response||u.responseText||t,u),l=!0)}}u.open(n,t.url,!0);var h=u.onload=c(200);u.onreadystatechange=function(){4===u.readyState&&h()},u.onerror=c(null,"Error"),u.ontimeout=c(null,"Timeout"),u.onabort=c(null,"Abort"),s&&(r(a,"X-Requested-With","XMLHttpRequest"),e.FormData&&s instanceof e.FormData||r(a,"Content-Type","application/x-www-form-urlencoded"));for(var m=0,d=i.length;mr.createElement("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e||"24",height:e||"24",...t},r.createElement("path",{fillRule:"evenodd",d:"M4.9937,15.9971 L4.9937,18.4971 C4.9937,18.7721 5.2177,18.9971 5.4937,18.9971 L5.4937,18.9971 L17.4937,18.9971 C17.7697,18.9971 17.9937,18.7721 17.9937,18.4971 L17.9937,18.4971 L17.9937,15.9971 L18.9937,15.9971 L18.9937,18.4971 C18.9937,19.3241 18.3207,19.9971 17.4937,19.9971 L17.4937,19.9971 L5.4937,19.9971 C4.6657,19.9971 3.9937,19.3241 3.9937,18.4971 L3.9937,18.4971 L3.9937,15.9971 L4.9937,15.9971 Z M11.9933,4 L11.9933,14.078 L15.0293,11.043 L15.7363,11.75 L11.4933,15.992 L7.2513,11.75 L7.9583,11.043 L10.9933,14.078 L10.9933,4 L11.9933,4 Z"}));o.displayName="Download";var a=o},17616:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var r=i(5329);const o=({size:e,...t})=>r.createElement("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e||"24",height:e||"24",...t},r.createElement("path",{fillRule:"evenodd",d:"M8.1816,5.0039 C7.9276,5.0039 7.6696,5.0279 7.4106,5.0759 C5.7326,5.3909 4.3566,6.8479 4.0646,8.6189 C3.9346,9.4039 4.0036,10.2029 4.2616,10.9319 C4.2636,10.9379 4.2656,10.9439 4.2676,10.9499 C5.1716,13.8579 10.2066,17.4019 11.7286,18.4189 C11.8966,18.5329 12.1076,18.5309 12.2746,18.4189 C13.7956,17.4019 18.8266,13.8589 19.7326,10.9499 C19.9966,10.2029 20.0646,9.4039 19.9356,8.6189 C19.6426,6.8479 18.2666,5.3909 16.5896,5.0759 C14.9596,4.7749 13.3646,5.4459 12.4126,6.8369 C12.2256,7.1099 11.7736,7.1099 11.5876,6.8369 C10.7866,5.6669 9.5276,5.0039 8.1816,5.0039 M12.0016,19.5029 C11.7136,19.5029 11.4246,19.4189 11.1726,19.2509 C9.1366,17.8899 4.2966,14.3869 3.3156,11.2559 C3.0036,10.3719 2.9216,9.4039 3.0776,8.4569 C3.4436,6.2429 5.1106,4.4889 7.2266,4.0939 C9.0226,3.7539 10.8006,4.3809 11.9996,5.7409 C13.1996,4.3829 14.9766,3.7569 16.7736,4.0939 C18.8896,4.4899 20.5566,6.2429 20.9216,8.4569 C21.0786,9.4069 20.9956,10.3789 20.6816,11.2659 C19.7116,14.3819 14.8676,17.8889 12.8306,19.2509 C12.5786,19.4189 12.2896,19.5029 12.0016,19.5029"}));o.displayName="LikeHeart";var a=o},65345:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var r=i(5329);const o=({size:e,...t})=>r.createElement("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e||"24",height:e||"24",...t},r.createElement("path",{fillRule:"evenodd",d:"M20.9219,8.4561 C20.5569,6.2411 18.8899,4.4871 16.7729,4.0901 C14.9729,3.7521 13.1989,4.3791 11.9999,5.7381 C10.8009,4.3791 9.0259,3.7521 7.2269,4.0901 C5.1099,4.4871 3.4429,6.2411 3.0779,8.4561 C2.9219,9.4021 3.0039,10.3711 3.3159,11.2571 C4.2969,14.3921 9.1369,17.8931 11.1729,19.2541 C11.4249,19.4221 11.7139,19.5061 12.0019,19.5061 C12.2909,19.5061 12.5789,19.4221 12.8309,19.2541 C14.8669,17.8931 19.7109,14.3871 20.6809,11.2661 C20.9959,10.3781 21.0789,9.4061 20.9219,8.4561"}));o.displayName="LikeHeartFill";var a=o},62310:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var r=i(5329);const o=({size:e,...t})=>r.createElement("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e||"24",height:e||"24",...t},r.createElement("path",{fillRule:"evenodd",d:"M14.5,14 C14.628,14 14.752,14.049 14.845,14.138 C14.944,14.232 15,14.363 15,14.5 L15,17.293 L20.293,12 L15,6.707 L15,9.5 C15,9.633 14.947,9.761 14.853,9.854 C14.759,9.947 14.632,10 14.5,10 C14.494,9.998 14.491,10 14.486,10 C13.667,10 7.407,10.222 4.606,16.837 C7.276,14.751 10.496,13.795 14.188,13.989 C14.324,13.996 14.426,14.001 14.476,14.001 C14.484,14 14.492,14 14.5,14 M3.5,19 C3.414,19 3.328,18.979 3.25,18.933 C3.052,18.819 2.957,18.585 3.019,18.365 C5.304,10.189 11.981,9.145 14,9.017 L14,5.5 C14,5.298 14.122,5.115 14.309,5.038 C14.496,4.963 14.71,5.004 14.854,5.146 L21.354,11.646 C21.549,11.842 21.549,12.158 21.354,12.354 L14.854,18.854 C14.71,18.997 14.495,19.038 14.309,18.962 C14.122,18.885 14,18.702 14,18.5 L14,14.981 C9.957,14.791 6.545,16.102 3.857,18.85 C3.761,18.948 3.631,19 3.5,19"}));o.displayName="Share";var a=o},54516:function(e){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var t=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,s,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l({x:parseFloat(e.split("x")[1].split("y")[0]),y:parseFloat(e.split("y")[1].split("z")[0]),z:parseFloat(e.split("z")[1])}),stylingParams_itemResolutionMode:U,layoutParams_thumbnails_position:W}},74619:function(e,t,i){"use strict";i.d(t,{DT:function(){return v},Gk:function(){return y},Ie:function(){return _},Jn:function(){return a},LC:function(){return s},Re:function(){return h},Sy:function(){return o},Xq:function(){return c},bo:function(){return l},eh:function(){return p},hd:function(){return u},hj:function(){return d},mR:function(){return g},p9:function(){return n},qr:function(){return m}});const r={OVERLAY:"OVERLAY",ABOVE:"ABOVE",BELOW:"BELOW",LEFT:"LEFT",RIGHT:"RIGHT",ALTERNATE_HORIZONTALLY:"ALTERNATE_HORIZONTALLY",ALTERNATE_VERTICALLY:"ALTERNATE_VERTICALLY"},o=e=>String(e).includes(r.OVERLAY),a=(e,t)=>String(e).includes(r.ABOVE)||t%2==0&&String(e).includes(r.ALTERNATE_VERTICALLY),s=(e,t)=>String(e).includes(r.BELOW)||t%2==1&&String(e).includes(r.ALTERNATE_VERTICALLY),n=(e,t)=>String(e).includes(r.RIGHT)||t%2==0&&String(e).includes(r.ALTERNATE_HORIZONTALLY),l=(e,t)=>String(e).includes(r.LEFT)||t%2==1&&String(e).includes(r.ALTERNATE_HORIZONTALLY),u=e=>a(e,0)||s(e,1),c=e=>n(e,0)||l(e,1),h=e=>u(e)&&!c(e)&&!o(e),m=e=>c(e)&&!u(e)&&!o(e),d=e=>String(e)===r.ABOVE,p=e=>String(e)===r.BELOW,g=e=>String(e)===r.OVERLAY,y=e=>String(e)===r.RIGHT,_=e=>String(e)===r.LEFT,v=e=>{const t=e.split(","),i=t.shift();return(e=>d(e)||p(e))(i)&&t.every((e=>e===i))};t.ZP=r},53234:function(e,t,i){"use strict";i.d(t,{L:function(){return a}});var r=i(37178);const o={JSON_FIXED:-3,DESIGNED_PRESET:-2,EMPTY:-1,COLLAGE:0,MASONRY:1,GRID:2,THUMBNAIL:3,SLIDER:4,SLIDESHOW:5,PANORAMA:6,COLUMN:7,MAGIC:8,FULLSIZE:9,BRICKS:10,MIX:11,ALTERNATE:12},a=e=>t=>t[r.Z.layoutParams.structure.galleryLayout]===o[e];t.Z=o},79782:function(e,t){"use strict";t.Z={SITE:"SITE",EDIT:"EDIT",PREVIEW:"PREVIEW",SEO:"SEO"}},13876:function(e,t,i){"use strict";i.d(t,{Z:function(){return g}});var r={};i.r(r),i.d(r,{debounce:function(){return s},get:function(){return n},isEqual:function(){return u},isFunction:function(){return l},isNumber:function(){return c},pick:function(){return o},throttle:function(){return a}});const o=(e,t)=>{const i={};return Object.entries(e||{}).forEach((([e,r])=>{t.indexOf(e)>=0&&(i[e]=r)})),i},a=(e,t)=>{let i=!1,r=!1;return(...o)=>{i?r=!0:(r=!1,e.apply(void 0,o),i=!0,setTimeout((()=>{r&&e.apply(void 0,o),i=!1}),t))}},s=(e,t)=>{let i;return(...r)=>{clearTimeout(i),i=setTimeout((()=>{e.apply(void 0,r)}),t)}},n=(e,t,i)=>{const r=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce(((e,t)=>null!=e?e[t]:e),e);return void 0===r||r===e?i:r},l=e=>"function"==typeof e,u=(e,t)=>{try{return JSON.stringify(e)===JSON.stringify(t)}catch(e){return!1}},c=e=>!isNaN(parseFloat(e))&&isFinite(e);var h=i(32324),m=i(77089),d=i(36390),p=i(37178);var g=new class{constructor(){this._cache={},this._hash2int={},this._params={},Object.assign(this,r)}shouldUseCache(){return!(0,m.wh)()&&!(0,m.g4)()&&!this.isSSR()}isUndefined(e){return void 0===e}uniqueBy(e,t){return e.filter(((e,i,r)=>r.map((e=>e[t])).indexOf(e[t])===i))}inRange(e,t,i=t){if(0===t)return-1;for(;e<0;)e+=t;for(;e>i;)e-=t;return e}sliceArrayWithRange(e,t,i){return Array(i-t).fill(0).map(((i,r)=>{const o=t+r;return e[this.inRange(o,e.length,e.length-1)]}))}sliceArrayIfAvailable(e,t,i){let r=Math.max(t,0),o=Math.min(i,e.length);return r>t&&(o=Math.min(o+(r-t),e.length)),o{r=t.split("="),r[0]===e&&(i=decodeURIComponent(r[1]))})),!i){const t=decodeURIComponent(o.pathname).split("?")[1];if(!t)return"";t.split("&").forEach((t=>{r=t.split("="),r[0]===e&&(i=decodeURIComponent(r[1]))}))}return this._params[e]=i,i}catch(e){return!1}}stripSlashes(e){let t="";return"string"==typeof e&&(t=e.replace(/\\\//g,"/").replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/\\0/g,"\0").replace(/\\\\/g,"\\")),t}parseStringObject(e){if("string"!=typeof e)return e;const t=this.stripSlashes(e);if("string"==typeof e&&/^[\],:{}\s]*$/.test(t.replace(/\\["\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))try{return JSON.parse(t)}catch(e){}return t}hashCode(e){let t,i,r=0;if(0===e.length)return r;for(t=0;t{const e=this.parseGetParam("deviceType")||h.Z.deviceType,t="true"===this.parseGetParam("showMobileView"),i=(0,m.KH)();return!!t||(e?String(e).toLowerCase().indexOf("mobile")>=0:i||void 0)}))}isUserAgentMobile(){try{const e=()=>{let e=!1;var t;return t=navigator.userAgent||navigator.vendor||h.Z.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|pixel|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t.substr(0,4)))&&(e=!0),e};return this.getOrPutFromCache("isUserAgentMobile",e)}catch(e){return!1}}isMobile(){return this.getOrPutFromCache("isMobile",(()=>{const e=this.isMobileByProps(),t=this.isUserAgentMobile();return this.isUndefined(e)?t:e}))}isTouch(){return this.getOrPutFromCache("isTouch",(()=>{var e;const t=(0,m.dh)(),i=(null===(e=h.Z.navigator)||void 0===e?void 0:e.maxTouchPoints)>0||"ontouchstart"in h.Z.document.documentElement;return this.isUndefined(t)?i:t}))}isTest(){try{return h.Z.isTest}catch(e){return!1}}isLocal(){try{const e=h.Z.location.hostname;return"local.wix.com"===e||(e.indexOf("localhost")>=0||"true"===this.parseGetParam("debug"))}catch(e){return!1}}isDev(){return this.getOrPutFromCache("isDev",(()=>this.shouldDebug("ph_local")||this.isOOI()&&!1||"true"===(this.safeLocalStorage()||{}).forceDevMode))}isVerbose(){return!this.isTest()&&"true"===(this.safeLocalStorage()||{}).forceDevMode}isStoreGallery(){return this.getOrPutFromCache("isStoreGallery",(()=>{try{return h.Z.location.search.toLowerCase().indexOf("isstore")>-1}catch(e){return this.isDev()&&console.error("cant find window",e),!1}}))}isSSR(){return"undefined"!=typeof global&&void 0===(null===global||void 0===global?void 0:global.window)}isOOI(){return this.isSSR()||"undefined"!=typeof top&&"undefined"!=typeof self&&(top===self||self.location.origin.includes("editor.wix.com"))}generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=Math.floor(16*Math.random())||0;return"x"===e?t.toString(16):e}))}isExternalUrl(e){return/(^https?)|(^data)|(^blob)/.test(e)}isiOS(){return this.getOrPutFromCache("isiOS",(()=>{try{return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!h.Z.MSStream}catch(e){return!1}}))}isiPhone(){return this.getOrPutFromCache("isiPhone",(()=>{try{return/iPhone/.test(navigator.userAgent)&&!h.Z.MSStream}catch(e){return!1}}))}isLandscape(){return this.getOrPutFromCache("isLandscape",(()=>{if(!this.isMobile())return!1;try{if(this.isUndefined(h.Z.orientation)){const e=h.Z.matchMedia("(orientation: landscape)");return!(!e||!0!==e.matches)}return 90===h.Z.orientation||-90===h.Z.orientation}catch(e){return!1}}))}safeLocalStorage(){try{return localStorage||h.Z}catch(e){return h.Z}}shouldDebug(e){try{return!!this.safeLocalStorage()[e]||(h.Z.debugApp||"").indexOf(e)>=0||(this.parseGetParam("debugApp")||"").indexOf(e)>=0}catch(e){return!1}}deviceHasMemoryIssues(){return this.isiOS()}getTabIndex(e){const t=["currentGalleryItem","loadMoreButton","slideshowNext","slideshowPrev","currentThumbnail","slideshowLove","slideshowShare","cartIcon","cartClose","cartFrame","fullscreenClose","fullscreenNext","fullscreenPrev","fullscreenInfo","fullscreenLink","fullscreenProvider","fullscreenCartButton","fullscreenCheckout","fullscreenExpand","fullscreenVideoPlay","fullscreenVideoBar","fullscreenVideoMute","fullscreenVideoVolume","fullscreenCartIcon","fullscreenDownload","fullscreenLove","fullscreenShare"].indexOf(e)+1;return t>=0&&this.isOOI()?0:t||-1}setStateAndLog(e,t,i,r){if(this.isVerbose()){console.log(`State Change Called (${t})`,i);const o=Object.assign({},e.state);e.setState(i,(()=>{const i=Object.assign({},e.state),a=this.printableObjectsDiff(o,i,"state");Object.keys(a).length>0&&console.log(`State Change Completed (${t})`,a),this.isFunction(r)&&r.bind(e)()}))}else e.setState(i,(()=>{this.isFunction(r)&&r.bind(e)()}))}printableObjectsDiff(e,t,i=""){const r=e=>(""===e?e="''":this.isUndefined(e)&&(e="undefined"),String(e)),o=(e={},t={},i,a=1)=>{if(a>3)return{};return Object.entries(e).reduce(((e,[s,n])=>(this.isEqual(n,t[s])||(Array.isArray(t[s])?(n.length!==t[s].length&&(e[s+".length"]="["+n.length+"] => ["+t[s].length+"]"),e=Object.assign(e,o(n,t[s],(i?i+".":"")+s,a+1))):"object"==typeof t[s]?e=Object.assign(e,o(n,t[s],(i?i+".":"")+s,a+1)):e[(i?i+".":"")+s]=r(n)+" => "+r(t[s])),e)),{})};return o(e,t,i,1)}getScreenWidth(){if((0,m.g4)()&&this.isMobile())return 320;if(this.isTest())return 1920;try{return this.isLandscape()?Math.max(h.Z.screen.width,h.Z.screen.height):h.Z.screen.width}catch(e){return 1920}}getScreenHeight(){if(this.isTest())return 1200;try{return this.isLandscape()?Math.min(h.Z.screen.width,h.Z.screen.height):h.Z.screen.height}catch(e){return 1200}}getWindowWidth(){try{return h.Z.innerWidth||980}catch(e){return 980}}getMobileEnabledClick(e){return this.isMobile()?{onTouchEnd:e}:{onClick:e}}getTopUrlParam(e){if(this.isUndefined(this._cache.params)&&(this._cache.params={}),this.isUndefined(this._cache.params[e]))try{this._cache.params[e]=top.location.search.replace("?","").split("&").map((t=>{const i=t.split("=");return i[0]===e&&i[1]||""})).join("")}catch(t){this._cache.params[e]=!1}return this._cache.params[e]}scrollTo(e,t,i,r,o){this.isMobile()&&(i=0);const a=r?e.scrollLeft:e.scrollTop,s=t-a;let n=0;const l=()=>{n+=20;const t=((e,t,i,r)=>0===r?i+t:(e/=r/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t)(n,a,s,i);n"object"!=typeof t&&-1===String(e).indexOf("Expand")&&-1===String(e).indexOf("Color"))).map((([e,t])=>`${e}=${encodeURI(t)}`)).join("&");console.log("Gallery Playground link:",`https://pro-gallery.surge.sh?${t}`)}}catch(e){console.error(e)}}isSingleItemHorizontalDisplay(e){return e.scrollDirection===d.Z[p.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&1===e[p.Z.layoutParams.groups.groupSize]&&e[p.Z.layoutParams.crop.enable]&&1===e[p.Z.layoutParams.crop.ratios].length&&"100%/100%"===e[p.Z.layoutParams.crop.ratios][0]}getAriaAttributes({proGalleryRole:e,proGalleryRegionLabel:t}){const i="application"===e?"gallery application":"region",r={role:e||"region","aria-label":t};return(e||"region")!==i&&(r["aria-roledescription"]=i),r}focusGalleryElement(e){e.focus()}isMeaningfulString(e){return"string"==typeof e&&!!e.trim().length}isHeightSetByGallery(e){return e[p.Z.layoutParams.structure.scrollDirection]===d.Z[p.Z.layoutParams.structure.scrollDirection].VERTICAL&&!e[p.Z.behaviourParams.gallery.vertical.loadMore.enable]}}},77089:function(e,t,i){"use strict";i.d(t,{Ce:function(){return a},KH:function(){return c},Vg:function(){return u},bK:function(){return s},dh:function(){return h},g4:function(){return l},wh:function(){return n}});var r=i(79782),o=i(25938);const a=new class{constructor(){this.setViewMode=this.setViewMode.bind(this),this.isSiteMode=this.isSiteMode.bind(this),this.isEditMode=this.isEditMode.bind(this),this.isPreviewMode=this.isPreviewMode.bind(this),this.isSEOMode=this.isSEOMode.bind(this),this.setDeviceType=this.setDeviceType.bind(this),this.isDeviceTypeDesktop=this.isDeviceTypeDesktop.bind(this),this.isDeviceTypeMobile=this.isDeviceTypeMobile.bind(this),this.isDeviceTypeTablet=this.isDeviceTypeTablet.bind(this),this.isDeviceTypeTouch=this.isDeviceTypeTouch.bind(this),this._viewMode=r.Z.SITE,this._deviceType=o.Z.DESKTOP}setViewMode(e){this._viewMode=e}setDeviceType(e){this._deviceType=e}isDeviceTypeMobile(){return this._deviceType===o.Z.MOBILE}isDeviceTypeTablet(){return this._deviceType===o.Z.TABLET}isDeviceTypeDesktop(){return this._deviceType===o.Z.DESKTOP}isDeviceTypeTouch(){return this.isDeviceTypeMobile()||this.isDeviceTypeTablet()}isSiteMode(){return this._viewMode===r.Z.SITE}isEditMode(){return this._viewMode===r.Z.EDIT}isPreviewMode(){return this._viewMode===r.Z.PREVIEW}isSEOMode(){return this._viewMode===r.Z.SEO}},s=a.isSiteMode,n=a.isEditMode,l=a.isPreviewMode,u=a.isSEOMode,c=a.isDeviceTypeMobile,h=(a.isDeviceTypeTablet,a.isDeviceTypeDesktop,a.isDeviceTypeTouch)},32324:function(e,t,i){"use strict";i.d(t,{Z:function(){return p},h:function(){return d}});const r=()=>({}),o=2560,a=1440,s={y:0,x:0,width:o,height:a,innerWidth:o,innerHeight:a,outerWidth:o,outerHeight:a,clientWidth:o,clientHeight:a},n=Object.assign(Object.assign({},s),{getBoundingClientRect:()=>s}),l=Object.assign({addEventListener:r,removeEventListener:r,createEvent:r,getElementById:()=>n,getElementsByClassName:()=>[n],getElementsByTagName:()=>[n],querySelector:()=>[n],documentElement:n,activeElement:n,style:s},s);l.body=l;const u=Object.assign(Object.assign({},s),{scrollTop:0,scrollY:0}),c=Object.assign({isMock:!0,isSSR:!0,orientation:0,devicePixelRatio:1,addEventListener:r,removeEventListener:r,createEvent:r,CustomEvent:r,screen:s,open:r,petri:{},search:{},location:{href:"http://mock.wix.com/",protocol:"http:",host:"mock.wix.com",hostname:"mock.wix.com",port:"",pathname:"/",search:"",hash:""},postMessage:r,requestAnimationFrame:r,dispatchEvent:r,document:l,getComputedStyle:r,localStorage:{},frames:[]},u),h=new Map(Object.keys(u).map((e=>[e,u[e]])));c.parent=c;var m=c;const d=new class{constructor(){this.shouldUseMock=!0,this.initProxyWindow=this.initProxyWindow.bind(this),this.windowIsAvailable()?this.initProxyWindow():this.initMockWindow()}windowIsAvailable(){try{return"undefined"!=typeof window}catch(e){return!1}}initProxyWindow(){const e={get:function(e,t){return h.has(t)&&this.shouldUseMock?h.get(t):e[t]}.bind(this),set:function(e,t,i){return Reflect.set(e,t,i)}},t=new Proxy(window,e),i={get:function(e,i){return t.proGalleryCustomProps.has(i)||"function"!=typeof t[i]?t[i]:t[i].bind(window)},set:function(e,i,r){return t.proGalleryCustomProps.add(i),Reflect.set(t,i,r)}};t.proGalleryCustomProps||(t.proGalleryCustomProps=new Set),this.window=new Proxy({},i)}initMockWindow(){this.window=m,this.window.mockInstanceId=Math.floor(1e5*Math.random())}stopUsingMock(){this.shouldUseMock=!1}get shouldUseMock(){return this._shouldUseMock}set shouldUseMock(e){this._shouldUseMock=e}};var p=d.window},42591:function(e,t,i){"use strict";i.d(t,{fE:function(){return y},ZP:function(){return I},gJ:function(){return v},c4:function(){return f},_A:function(){return P},_Q:function(){return _},$e:function(){return b}});var r=i(13876),o=i(32324),a=i(74619),s=i(36390),n=i(37178);var l=(e,t)=>{let i=Object.assign({},e);return i[n.Z.layoutParams.info.height]=function(e,t){if(!function(e,t){return(0,a.hd)(e[n.Z.layoutParams.info.placement])&&t}(e,t))return 0;return e[n.Z.layoutParams.info.height]}(i,t),i.externalInfoHeight=function(e,t){let i=t;t>0&&(0,a.hd)(e[n.Z.layoutParams.info.placement])&&e[n.Z.layoutParams.info.layout]===s.Z[n.Z.layoutParams.info.layout].SEPARATED_BACKGROUND&&(i+=e[n.Z.layoutParams.info.spacing],i+=2*e[n.Z.layoutParams.info.border.width]);return i}(i,i[n.Z.layoutParams.info.height]),i.externalInfoWidth=function(e,t){if(!function(e,t){const i=e[n.Z.layoutParams.structure.scrollDirection]===s.Z[n.Z.layoutParams.structure.scrollDirection].VERTICAL&&e[n.Z.layoutParams.structure.layoutOrientation]===s.Z[n.Z.layoutParams.structure.layoutOrientation].VERTICAL&&1===e[n.Z.layoutParams.groups.groupSize];return i&&(0,a.Xq)(e[n.Z.layoutParams.info.placement])&&t}(e,t))return 0;let i=0;i=e[n.Z.layoutParams.info.sizeUnits]===s.Z[n.Z.layoutParams.info.sizeUnits].PERCENT?Math.min(100,Math.max(0,e[n.Z.layoutParams.info.width]))/100:e[n.Z.layoutParams.info.width];return i}(i,t),i},u=i(99233);const c=e=>e.replace(/_/g," ").split(" ").map((e=>e[0].toUpperCase()+e.substr(1).toLowerCase())).join(" "),h=e=>Object.entries(s.Z[e]).map((([e,t])=>({value:t,title:c(e)})));var m={title:"Slide Animation",isRelevant:e=>e[n.Z.layoutParams.structure.scrollDirection]===s.Z[n.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&1===e[n.Z.layoutParams.groups.groupSize]&&e[n.Z.layoutParams.crop.enable]&&JSON.stringify(e[n.Z.layoutParams.crop.ratios])===JSON.stringify(["100%/100%"]),isRelevantDescription:'Set a Horizontal gallery ("Scroll Direction" as "Horizontal"), set "Max Group Size" to "1" and set "Crop Images" to true.',type:u.A.OPTIONS,default:s.Z[n.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,get options(){return h(n.Z.behaviourParams.gallery.horizontal.slideAnimation)},description:"Choose the slide animation effect to be used when navigating between items in a slideshow"},d={title:"Scroll Direction",isRelevant:()=>!0,isRelevantDescription:"Always relevant.",type:u.A.OPTIONS,default:s.Z[n.Z.layoutParams.structure.scrollDirection].VERTICAL,get options(){return h(n.Z.layoutParams.structure.scrollDirection)},description:"Toggle between two types of galleries. Vertical and Horizontal. Notice that many options are available only for a specific scroll direction."},p=e=>d.isRelevant(e)&&e[n.Z.layoutParams.structure.scrollDirection]===s.Z[n.Z.layoutParams.structure.scrollDirection].HORIZONTAL,g=(u.A.BOOLEAN,{title:"Navigation Arrows Position",isRelevant:e=>p(e)&&e[n.Z.layoutParams.navigationArrows.enable],isRelevantDescription:'Set a Horizontal gallery ("Scroll Direction" as "Horizontal") and set "Show Navigation Arrows" to "true".',type:u.A.OPTIONS,default:s.Z.layoutParams_navigationArrows_position.ON_GALLERY,get options(){return h("layoutParams_navigationArrows_position")},description:"Set the position of the navigation arrows in sliders. You can choose to position the arrows on the gallery (ON_GALLERY)\n ,outside the gallery (OUTSIDE_GALLERY- in these case the gallery will margins from both sides to make room for the arrows), or on the mouse cursor (still in experimental mode).);\n "});const y=(e,t)=>e[n.Z.layoutParams.targetItemSize.unit]===s.Z[n.Z.layoutParams.targetItemSize.unit].PIXEL&&e[n.Z.layoutParams.targetItemSize.value]>0?e[n.Z.layoutParams.targetItemSize.value]:e[n.Z.layoutParams.targetItemSize.unit]===s.Z[n.Z.layoutParams.targetItemSize.unit].PERCENT&&e[n.Z.layoutParams.targetItemSize.value]>0?(o.Z&&o.Z.innerWidth||980)*(e[n.Z.layoutParams.targetItemSize.value]/100):t>0?t:e[n.Z.layoutParams.targetItemSize.value],_=e=>{let t=Object.assign({},e);return t=v(t),t[n.Z.layoutParams.structure.scrollDirection]!==s.Z[n.Z.layoutParams.structure.scrollDirection].VERTICAL&&t[n.Z.layoutParams.structure.layoutOrientation]!==s.Z[n.Z.layoutParams.structure.layoutOrientation].VERTICAL||(t[n.Z.layoutParams.groups.allowedGroupTypes]=[s.Z[n.Z.layoutParams.groups.allowedGroupTypes][1]],t[n.Z.layoutParams.groups.groupSize]=1,t[n.Z.layoutParams.groups.density]=0),t},v=e=>{let t=Object.assign({},e);return t.fixedColumns=0,t[n.Z.layoutParams.structure.scrollDirection]!==s.Z[n.Z.layoutParams.structure.scrollDirection].VERTICAL&&t[n.Z.layoutParams.structure.layoutOrientation]!==s.Z[n.Z.layoutParams.structure.layoutOrientation].VERTICAL||(t.fixedColumns=e[n.Z.layoutParams.structure.responsiveMode]===s.Z[n.Z.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW?t[n.Z.layoutParams.structure.numberOfColumns]:0),t},f=e=>{let t=Object.assign({},e);const i=t[n.Z.layoutParams.structure.layoutOrientation]===s.Z[n.Z.layoutParams.structure.layoutOrientation].VERTICAL;return t[n.Z.layoutParams.structure.responsiveMode]=i?e[n.Z.layoutParams.structure.responsiveMode]:s.Z[n.Z.layoutParams.structure.responsiveMode].FIT_TO_SCREEN,t},P=e=>{let t=Object.assign({},e);if(!r.Z.isUndefined(e[n.Z.layoutParams.structure.numberOfGridRows])&&e[n.Z.layoutParams.structure.scrollDirection]===s.Z[n.Z.layoutParams.structure.scrollDirection].HORIZONTAL)switch(t[n.Z.layoutParams.structure.numberOfColumns]=0,e[n.Z.layoutParams.structure.numberOfGridRows]){case 1:default:t[n.Z.layoutParams.groups.allowedGroupTypes]=[s.Z[n.Z.layoutParams.groups.allowedGroupTypes][1]],t[n.Z.layoutParams.groups.groupSize]=1,t[n.Z.layoutParams.groups.density]=0;break;case 2:t[n.Z.layoutParams.groups.allowedGroupTypes]=[s.Z[n.Z.layoutParams.groups.allowedGroupTypes]["2v"]],t[n.Z.layoutParams.groups.groupSize]=2,t[n.Z.layoutParams.groups.density]=1;break;case 3:t[n.Z.layoutParams.groups.allowedGroupTypes]=[s.Z[n.Z.layoutParams.groups.allowedGroupTypes]["3v"]],t[n.Z.layoutParams.groups.groupSize]=3,t[n.Z.layoutParams.groups.density]=1}return t},b=e=>{let t=Object.assign({},e);return t[n.Z.layoutParams.crop.method]===s.Z[n.Z.layoutParams.crop.method].FIT&&(t[n.Z.stylingParams.itemBorderWidth]=0,t[n.Z.stylingParams.itemBorderRadius]=0,t[n.Z.stylingParams.itemEnableShadow]=!1),t};var I=function(e,t){let i=Object.assign({},e);return r.Z.isMobile()&&(i=(e=>{let t=Object.assign({},e);return t[n.Z.layoutParams.structure.itemSpacing]>0&&(t[n.Z.layoutParams.structure.itemSpacing]=Math.min(t[n.Z.layoutParams.structure.itemSpacing],50)),t})(i)),i=(e=>{let t=Object.assign({},e);return s.Z.isLayout("SLIDER")(t)||s.Z.isLayout("COLUMN")(t)||s.Z.isLayout("SLIDESHOW")(t)||(t[n.Z.layoutParams.structure.layoutOrientation]===s.Z[n.Z.layoutParams.structure.layoutOrientation].HORIZONTAL||t[n.Z.layoutParams.groups.groupSize]>1)&&(t[n.Z.layoutParams.info.placement]=s.Z[n.Z.layoutParams.info.placement].OVERLAY),t})(i),i=(e=>{let t=Object.assign({},e);return e.EXPERIMENTALallowParallelInfos||(0,a.Sy)(t[n.Z.layoutParams.info.placement])||t[n.Z.behaviourParams.item.overlay.hoveringBehaviour]===s.Z[n.Z.behaviourParams.item.overlay.hoveringBehaviour].NEVER_SHOW||(t[n.Z.behaviourParams.item.overlay.hoveringBehaviour]=s.Z[n.Z.behaviourParams.item.overlay.hoveringBehaviour].APPEARS),t})(i),i=(e=>{let t=Object.assign({},e);return t[n.Z.stylingParams.itemEnableShadow]&&t[n.Z.layoutParams.structure.scrollDirection]===s.Z[n.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&(t[n.Z.stylingParams.itemEnableShadow]=!1),t})(i),i=(e=>{let t=Object.assign({},e);return t[n.Z.stylingParams.itemEnableShadow]&&t[n.Z.layoutParams.structure.scrollDirection]===s.Z[n.Z.layoutParams.structure.scrollDirection].VERTICAL&&(t[n.Z.layoutParams.structure.gallerySpacing]=Math.max(t[n.Z.layoutParams.structure.gallerySpacing],(t[n.Z.stylingParams.itemShadowSize]||0)+(t[n.Z.stylingParams.itemShadowBlur]||0))),t})(i),i=(e=>{let t=Object.assign({},e);return t[n.Z.layoutParams.navigationArrows.position]===s.Z[n.Z.layoutParams.navigationArrows.position].OUTSIDE_GALLERY&&(t[n.Z.layoutParams.navigationArrows.padding]=0),t})(i),i=(e=>{let t=Object.assign({},e);return t[n.Z.layoutParams.structure.scrollDirection]===s.Z[n.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&(t[n.Z.layoutParams.structure.layoutOrientation]=s.Z[n.Z.layoutParams.structure.layoutOrientation].HORIZONTAL),t})(i),i=(e=>{let t=Object.assign({},e);return t[n.Z.layoutParams.structure.scrollDirection]===s.Z[n.Z.layoutParams.structure.scrollDirection].VERTICAL&&(t[n.Z.behaviourParams.gallery.horizontal.loop]=!1),t})(i),i=(e=>{let t=Object.assign({},e);return(t[n.Z.layoutParams.structure.scrollDirection]===s.Z[n.Z.layoutParams.structure.scrollDirection].VERTICAL||t[n.Z.layoutParams.groups.groupSize]>1||!t[n.Z.layoutParams.crop.enable])&&(t[n.Z.behaviourParams.gallery.horizontal.slideAnimation]=s.Z[n.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL),t})(i),i=(e=>{let t=Object.assign({},e);return t.loadMoreButtonFont&&r.Z.isMobile()&&(t.loadMoreButtonFont.value=t.loadMoreButtonFont.value.replace(/^font\s*:\s*/,""),t.loadMoreButtonFont.value=t.loadMoreButtonFont.value.replace(/;$/,""),t.loadMoreButtonFont.value.indexOf("underline")>-1?(t.loadMoreButtonFont.value=t.loadMoreButtonFont.value.replace("underline",""),t.textDecorationLoadMore="underline"):t.textDecorationLoadMore="none"),t})(i),i=l(i,t),i=(e=>{let t=Object.assign({},e);const i=t[n.Z.layoutParams.groups.allowedGroupTypes].length>=1&&"1"===t[n.Z.layoutParams.groups.allowedGroupTypes].join(""),r=t[n.Z.layoutParams.info.placement].split(",").filter((e=>!(0,a.mR)(e))).join(",");return(0,a.DT)(r)&&i||(t[n.Z.layoutParams.navigationArrows.verticalAlignment]=s.Z[n.Z.layoutParams.navigationArrows.verticalAlignment].ITEM_CENTER),t})(i),i=(e=>{let t=Object.assign({},e);return t[n.Z.behaviourParams.gallery.horizontal.slideshowInfo.enableCounter]?(t[n.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour]===s.Z[n.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].OFF&&(t[n.Z.behaviourParams.gallery.horizontal.slideshowInfo.enableCounter]=!1),!1===s.Z.isLayout("SLIDESHOW")(e)&&(t[n.Z.behaviourParams.gallery.horizontal.slideshowInfo.enableCounter]=!1),t):t})(i),i=(e=>{let t=Object.assign({},e);return e[n.Z.behaviourParams.gallery.horizontal.slideAnimation]!==s.Z[n.Z.behaviourParams.gallery.horizontal.slideAnimation].FADE&&e[n.Z.behaviourParams.gallery.horizontal.slideAnimation]!==s.Z[n.Z.behaviourParams.gallery.horizontal.slideAnimation].DECK||!m.isRelevant(e)||(t[n.Z.behaviourParams.gallery.horizontal.blockScroll]=!0),t})(i),i=(e=>{let t=Object.assign({},e);return e[n.Z.layoutParams.navigationArrows.position]===s.Z[n.Z.layoutParams.navigationArrows.position].MOUSE_CURSOR&&g.isRelevant(e)&&(t[n.Z.behaviourParams.item.video.enableControls]=!1),t})(i),i=(e=>{let t=Object.assign({},e);return r.Z.isTouch()&&e[n.Z.layoutParams.navigationArrows.position]===s.Z[n.Z.layoutParams.navigationArrows.position].MOUSE_CURSOR&&g.isRelevant(e)&&(t[n.Z.layoutParams.navigationArrows.enable]=!1),t})(i),i=(e=>{let t=Object.assign({},e);return t[n.Z.layoutParams.crop.cropOnlyFill]&&(t[n.Z.layoutParams.crop.enable]=t[n.Z.layoutParams.crop.method]===s.Z[n.Z.layoutParams.crop.method].FILL),t})(i),i}},37178:function(e,t){"use strict";t.Z={layoutParams:{groups:{density:"layoutParams_groups_density",groupByOrientation:"layoutParams_groups_groupByOrientation",numberOfGroupsPerRow:"layoutParams_groups_numberOfGroupsPerRow",allowedGroupTypes:"layoutParams_groups_allowedGroupTypes",repeatingGroupTypes:"layoutParams_groups_repeatingGroupTypes",groupSize:"layoutParams_groups_groupSize"},crop:{method:"layoutParams_crop_method",alignment:"layoutParams_crop_alignment",enable:"layoutParams_crop_enable",enableSmartCrop:"layoutParams_crop_enableSmartCrop",cropOnlyFill:"layoutParams_crop_cropOnlyFill",ratios:"layoutParams_crop_ratios"},structure:{galleryLayout:"layoutParams_structure_galleryLayout",galleryRatio:{value:"layoutParams_structure_galleryRatio_value",includeExternalInfo:"layoutParams_structure_galleryRatio_includeExternalInfo"},enableStreching:"layoutParams_structure_enableStreching",gallerySpacing:"layoutParams_structure_gallerySpacing",itemSpacing:"layoutParams_structure_itemSpacing",scrollDirection:"layoutParams_structure_scrollDirection",numberOfColumns:"layoutParams_structure_numberOfColumns",numberOfGridRows:"layoutParams_structure_numberOfGridRows",responsiveMode:"layoutParams_structure_responsiveMode",columnRatios:"layoutParams_structure_columnRatios",scatter:{randomScatter:"layoutParams_structure_scatter_randomScatter",manualScatter:"layoutParams_structure_scatter_manualScatter"},layoutOrientation:"layoutParams_structure_layoutOrientation",groupsOrder:"layoutParams_structure_groupsOrder"},thumbnails:{enable:"layoutParams_thumbnails_enable",position:"layoutParams_thumbnails_position",spacing:"layoutParams_thumbnails_spacing",marginToGallery:"layoutParams_thumbnails_marginToGallery",size:"layoutParams_thumbnails_size",alignment:"layoutParams_thumbnails_alignment"},navigationArrows:{enable:"layoutParams_navigationArrows_enable",size:"layoutParams_navigationArrows_size",padding:"layoutParams_navigationArrows_padding",position:"layoutParams_navigationArrows_position",verticalAlignment:"layoutParams_navigationArrows_verticalAlignment",type:"layoutParams_navigationArrows_type",container:{type:"layoutParams_navigationArrows_container_type",borderRadius:"layoutParams_navigationArrows_container_borderRadius",backgroundColor:"layoutParams_navigationArrows_container_backgroundColor"},mouseCursorContainerMaxWidth:"layoutParams_navigationArrows_mouseCursorContainerMaxWidth"},info:{sizeUnits:"layoutParams_info_sizeUnits",width:"layoutParams_info_width",height:"layoutParams_info_height",spacing:"layoutParams_info_spacing",layout:"layoutParams_info_layout",border:{width:"layoutParams_info_border_width",color:"layoutParams_info_border_color",radius:"layoutParams_info_border_radius"},placement:"layoutParams_info_placement"},targetItemSize:{unit:"layoutParams_targetItemSize_unit",value:"layoutParams_targetItemSize_value",minimum:"layoutParams_targetItemSize_minimum"}},behaviourParams:{item:{clickAction:"behaviourParams_item_clickAction",video:{speed:"behaviourParams_item_video_speed",volume:"behaviourParams_item_video_volume",loop:"behaviourParams_item_video_loop",playTrigger:"behaviourParams_item_video_playTrigger",enablePlayButton:"behaviourParams_item_video_enablePlayButton",enableThumbnailsPlayButton:"behaviourParams_item_video_enableThumbnailsPlayButton",enableControls:"behaviourParams_item_video_enableControls",enablePlaceholder:"behaviourParams_item_video_enablePlaceholder"},threeDimensionalScene:{transform:{rotation:"behaviourParams_item_threeDimensionalScene_transform_rotation",scale:"behaviourParams_item_threeDimensionalScene_transform_scale",position:"behaviourParams_item_threeDimensionalScene_transform_position"},controls:{enableZoom:"behaviourParams_item_threeDimensionalScene_controls_enableZoom",enableRotate:"behaviourParams_item_threeDimensionalScene_controls_enableRotate",enablePan:"behaviourParams_item_threeDimensionalScene_controls_enablePan",enableAutoRotate:"behaviourParams_item_threeDimensionalScene_controls_enableAutoRotate"},enablePlayButton:"behaviourParams_item_threeDimensionalScene_enablePlayButton",enableThumbnailsPlayButton:"behaviourParams_item_threeDimensionalScene_enableThumbnailsPlayButton",playTrigger:"behaviourParams_item_threeDimensionalScene_playTrigger"},overlay:{hoveringBehaviour:"behaviourParams_item_overlay_hoveringBehaviour",hoverAnimation:"behaviourParams_item_overlay_hoverAnimation",position:"behaviourParams_item_overlay_position",size:"behaviourParams_item_overlay_size",sizeUnits:"behaviourParams_item_overlay_sizeUnits",padding:"behaviourParams_item_overlay_padding",backgroundColor:"behaviourParams_item_overlay_backgroundColor"},content:{hoverAnimation:"behaviourParams_item_content_hoverAnimation",placementAnimation:"behaviourParams_item_content_placementAnimation",loader:"behaviourParams_item_content_loader",magnificationValue:"behaviourParams_item_content_magnificationValue",tiltAngleValue:"behaviourParams_item_content_tiltAngleValue"},secondaryMedia:{trigger:"behaviourParams_item_secondaryMedia_trigger",behaviour:"behaviourParams_item_secondaryMedia_behaviour"}},gallery:{layoutDirection:"behaviourParams_gallery_layoutDirection",blockContextMenu:"behaviourParams_gallery_blockContextMenu",scrollAnimation:"behaviourParams_gallery_scrollAnimation",enableIndexingShareLinks:"behaviourParams_gallery_enableIndexingShareLinks",vertical:{loadMore:{enable:"behaviourParams_gallery_vertical_loadMore_enable",amount:"behaviourParams_gallery_vertical_loadMore_amount",text:"behaviourParams_gallery_vertical_loadMore_text"}},horizontal:{enableScrollSnap:"behaviourParams_gallery_horizontal_enableScrollSnap",slideAnimation:"behaviourParams_gallery_horizontal_slideAnimation",slideTransition:"behaviourParams_gallery_horizontal_slideTransition",blockScroll:"behaviourParams_gallery_horizontal_blockScroll",navigationDuration:"behaviourParams_gallery_horizontal_navigationDuration",loop:"behaviourParams_gallery_horizontal_loop",autoSlide:{behaviour:"behaviourParams_gallery_horizontal_autoSlide_behaviour",interval:"behaviourParams_gallery_horizontal_autoSlide_interval",pauseOnHover:"behaviourParams_gallery_horizontal_autoSlide_pauseOnHover",speed:"behaviourParams_gallery_horizontal_autoSlide_speed"},slideshowInfo:{buttonsAlignment:"behaviourParams_gallery_horizontal_slideshowInfo_buttonsAlignment",enableCounter:"behaviourParams_gallery_horizontal_slideshowInfo_enableCounter",enablePlayButton:"behaviourParams_gallery_horizontal_slideshowInfo_enablePlayButton"}}}},stylingParams:{arrowsColor:"stylingParams_arrowsColor",itemShadowBlur:"stylingParams_itemShadowBlur",itemShadowDirection:"stylingParams_itemShadowDirection",itemShadowOpacityAndColor:"stylingParams_itemShadowOpacityAndColor",itemShadowSize:"stylingParams_itemShadowSize",itemEnableShadow:"stylingParams_itemEnableShadow",itemBorderRadius:"stylingParams_itemBorderRadius",itemBorderWidth:"stylingParams_itemBorderWidth",itemBorderColor:"stylingParams_itemBorderColor",itemResolutionMode:"stylingParams_itemResolutionMode"}}},82470:function(e,t,i){"use strict";function r(e,t,i,r=!0){let o=r?Object.assign({},e):e,a=t.split("_"),s=a.pop(),n=o;return a.forEach((e=>{"object"!=typeof n[e]&&(n[e]={}),n=n[e]})),n[s]=i,o}function o(e){var t={};for(var i in e)if(e.hasOwnProperty(i))if("object"==typeof e[i]&&!(e[i]instanceof Array)&&null!==e[i]&&Object.keys(e[i]).length>0){var r=o(e[i]);for(var a in r)r.hasOwnProperty(a)&&(t[i+"_"+a]=r[a])}else t[i]=e[i];return t}function a(e){return Object.entries(e).reduce(((e,[t,i])=>r(e,t,i,false)),{})}function s(...e){return a(Object.assign({},...e.map(o)))}i.d(t,{FX:function(){return o},Tx:function(){return a},oZ:function(){return s}})},49994:function(e,t,i){"use strict";i.d(t,{V4:function(){return b}});var r=i(42591),o=i(37178),a=i(36390);const s=e=>{let t=Object.assign({},e);return t[o.Z.layoutParams.structure.galleryLayout]=a.Z[o.Z.layoutParams.structure.galleryLayout].ALTERNATE,t[o.Z.layoutParams.crop.method]=a.Z[o.Z.layoutParams.crop.method].FILL,t[o.Z.layoutParams.crop.enable]=!0,t[o.Z.layoutParams.crop.ratios]=[1],t[o.Z.layoutParams.info.placement]=a.Z[o.Z.layoutParams.info.placement].OVERLAY,t[o.Z.layoutParams.structure.scrollDirection]=a.Z[o.Z.layoutParams.structure.scrollDirection].VERTICAL,t[o.Z.layoutParams.structure.responsiveMode]=a.Z[o.Z.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,t[o.Z.layoutParams.structure.gallerySpacing]=0,t[o.Z.layoutParams.structure.layoutOrientation]=a.Z[o.Z.layoutParams.structure.layoutOrientation].VERTICAL,t[o.Z.layoutParams.groups.groupSize]=3,t[o.Z.layoutParams.groups.density]=.48,t[o.Z.layoutParams.groups.allowedGroupTypes]=[a.Z[o.Z.layoutParams.groups.allowedGroupTypes][1],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["2h"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["2v"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3t"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3b"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3l"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3r"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3v"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3h"]],t[o.Z.layoutParams.targetItemSize.value]=86,t[o.Z.layoutParams.targetItemSize.minimum]=50,t[o.Z.layoutParams.groups.groupByOrientation]=!0,t[o.Z.layoutParams.groups.repeatingGroupTypes]=[a.Z[o.Z.layoutParams.groups.allowedGroupTypes][1],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["2h"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes][1],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["2h"]],t[o.Z.layoutParams.crop.enableSmartCrop]=!1,t[o.Z.layoutParams.structure.scatter.randomScatter]=0,t[o.Z.layoutParams.structure.scatter.manualScatter]="",t[o.Z.layoutParams.structure.numberOfColumns]=1,t[o.Z.layoutParams.groups.numberOfGroupsPerRow]=0,t[o.Z.layoutParams.structure.groupsOrder]=a.Z[o.Z.layoutParams.structure.groupsOrder].BY_HEIGHT,t.fixedColumns=1,t},n=(s({}),e=>{let t=Object.assign({},e);return t[o.Z.layoutParams.structure.galleryLayout]=a.Z[o.Z.layoutParams.structure.galleryLayout].BRICKS,t[o.Z.layoutParams.crop.method]=a.Z[o.Z.layoutParams.crop.method].FILL,t[o.Z.layoutParams.crop.enable]=!0,t[o.Z.layoutParams.info.placement]=a.Z[o.Z.layoutParams.info.placement].OVERLAY,t[o.Z.layoutParams.structure.scrollDirection]=a.Z[o.Z.layoutParams.structure.scrollDirection].VERTICAL,t[o.Z.layoutParams.structure.gallerySpacing]=0,t[o.Z.layoutParams.structure.layoutOrientation]=a.Z[o.Z.layoutParams.structure.layoutOrientation].VERTICAL,t[o.Z.layoutParams.groups.groupSize]=3,t[o.Z.layoutParams.groups.density]=.8,t[o.Z.layoutParams.groups.allowedGroupTypes]=[a.Z[o.Z.layoutParams.groups.allowedGroupTypes][1],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["2h"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["2v"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3t"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3b"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3l"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3r"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3v"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3h"]],t[o.Z.behaviourParams.gallery.horizontal.loop]=!1,t[o.Z.layoutParams.structure.responsiveMode]=a.Z[o.Z.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,t[o.Z.layoutParams.targetItemSize.value]=400,t[o.Z.layoutParams.targetItemSize.minimum]=50,t[o.Z.layoutParams.groups.groupByOrientation]=!0,t[o.Z.layoutParams.groups.repeatingGroupTypes]=[a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["2h"]],t[o.Z.layoutParams.crop.enableSmartCrop]=!1,t[o.Z.layoutParams.structure.scatter.randomScatter]=0,t[o.Z.layoutParams.structure.scatter.manualScatter]="",t[o.Z.layoutParams.structure.numberOfColumns]=1,t[o.Z.layoutParams.groups.numberOfGroupsPerRow]=0,t[o.Z.layoutParams.structure.groupsOrder]=a.Z[o.Z.layoutParams.structure.groupsOrder].BY_HEIGHT,t[o.Z.layoutParams.crop.ratios]=[.707,1.414,1.414,.707],t.fixedColumns=1,t}),l=(n({}),e=>{let t=Object.assign({},e);return t[o.Z.layoutParams.structure.galleryLayout]=a.Z[o.Z.layoutParams.structure.galleryLayout].COLLAGE,t[o.Z.layoutParams.crop.enable]=!1,a.Z[o.Z.layoutParams.info.placement].OVERLAY,t[o.Z.layoutParams.groups.groupSize]=3,t[o.Z.layoutParams.groups.allowedGroupTypes]=[a.Z[o.Z.layoutParams.groups.allowedGroupTypes][1],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["2h"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["2v"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3t"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3b"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3l"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3r"]],t[o.Z.behaviourParams.gallery.horizontal.loop]=!1,t[o.Z.layoutParams.structure.numberOfGridRows]=1,t[o.Z.layoutParams.structure.responsiveMode]=a.Z[o.Z.layoutParams.structure.responsiveMode].FIT_TO_SCREEN,t[o.Z.layoutParams.structure.numberOfColumns]=0,t[o.Z.layoutParams.crop.cropOnlyFill]=!1,t[o.Z.behaviourParams.gallery.horizontal.slideAnimation]=a.Z[o.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,t.fixedColumns=0,t}),u=(l({}),e=>{let t=Object.assign({},e);return t[o.Z.layoutParams.structure.galleryLayout]=a.Z[o.Z.layoutParams.structure.galleryLayout].FULLSIZE,t[o.Z.layoutParams.crop.enable]=!0,t[o.Z.layoutParams.crop.ratios]=["100%/100%"],t[o.Z.layoutParams.crop.method]=a.Z[o.Z.layoutParams.crop.method].FILL,t[o.Z.layoutParams.info.placement]=a.Z[o.Z.layoutParams.info.placement].OVERLAY,t[o.Z.layoutParams.structure.scrollDirection]=a.Z[o.Z.layoutParams.structure.scrollDirection].HORIZONTAL,t[o.Z.layoutParams.structure.gallerySpacing]=0,t[o.Z.layoutParams.structure.layoutOrientation]=a.Z[o.Z.layoutParams.structure.layoutOrientation].HORIZONTAL,t[o.Z.layoutParams.groups.groupSize]=1,t[o.Z.layoutParams.groups.allowedGroupTypes]=[a.Z[o.Z.layoutParams.groups.allowedGroupTypes][1]],t[o.Z.layoutParams.structure.responsiveMode]=a.Z[o.Z.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,t[o.Z.layoutParams.structure.numberOfGridRows]=1,t[o.Z.layoutParams.crop.enableSmartCrop]=!1,t[o.Z.behaviourParams.gallery.horizontal.enableScrollSnap]=!0,t[o.Z.layoutParams.crop.cropOnlyFill]=!0,t[o.Z.layoutParams.structure.scatter.randomScatter]=0,t[o.Z.layoutParams.structure.scatter.manualScatter]="",t[o.Z.layoutParams.structure.itemSpacing]=0,t}),c=(u({}),e=>{let t=Object.assign({},e);return t[o.Z.layoutParams.structure.galleryLayout]=a.Z[o.Z.layoutParams.structure.galleryLayout].COLUMN,t[o.Z.layoutParams.crop.method]=a.Z[o.Z.layoutParams.crop.method].FILL,t[o.Z.layoutParams.crop.enable]=!0,t[o.Z.layoutParams.crop.ratios]=[.35],t[o.Z.layoutParams.structure.scrollDirection]=a.Z[o.Z.layoutParams.structure.scrollDirection].HORIZONTAL,t[o.Z.layoutParams.structure.layoutOrientation]=a.Z[o.Z.layoutParams.structure.layoutOrientation].HORIZONTAL,t[o.Z.layoutParams.groups.groupSize]=1,t[o.Z.layoutParams.groups.allowedGroupTypes]=[a.Z[o.Z.layoutParams.groups.allowedGroupTypes][1]],t[o.Z.layoutParams.structure.responsiveMode]=a.Z[o.Z.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,t[o.Z.layoutParams.structure.numberOfGridRows]=1,t[o.Z.layoutParams.crop.enableSmartCrop]=!1,t[o.Z.layoutParams.structure.numberOfColumns]=0,t[o.Z.layoutParams.crop.cropOnlyFill]=!1,t[o.Z.behaviourParams.gallery.horizontal.slideAnimation]=a.Z[o.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,t.fixedColumns=0,t}),h=(c({}),e=>{let t=Object.assign({},e);return t[o.Z.layoutParams.structure.galleryLayout]=a.Z[o.Z.layoutParams.structure.galleryLayout].GRID,t[o.Z.layoutParams.crop.enable]=!0,t[o.Z.layoutParams.structure.layoutOrientation]=a.Z[o.Z.layoutParams.structure.layoutOrientation].VERTICAL,t[o.Z.layoutParams.groups.groupSize]=1,t[o.Z.layoutParams.groups.allowedGroupTypes]=[a.Z[o.Z.layoutParams.groups.allowedGroupTypes][1]],t[o.Z.behaviourParams.gallery.horizontal.loop]=!1,t[o.Z.layoutParams.crop.enableSmartCrop]=!1,t[o.Z.layoutParams.crop.cropOnlyFill]=!1,t[o.Z.layoutParams.targetItemSize.minimum]=50,t[o.Z.behaviourParams.gallery.horizontal.slideAnimation]=a.Z[o.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,t[o.Z.layoutParams.groups.density]=0,t}),m=(h({}),e=>{let t=Object.assign({},e);return t[o.Z.layoutParams.structure.galleryLayout]=a.Z[o.Z.layoutParams.structure.galleryLayout].MASONRY,t[o.Z.layoutParams.crop.enable]=!1,t[o.Z.layoutParams.structure.scrollDirection]=a.Z[o.Z.layoutParams.structure.scrollDirection].VERTICAL,t[o.Z.layoutParams.groups.groupSize]=1,t[o.Z.layoutParams.groups.allowedGroupTypes]=[a.Z[o.Z.layoutParams.groups.allowedGroupTypes][1]],t[o.Z.behaviourParams.gallery.horizontal.loop]=!1,t[o.Z.layoutParams.crop.cropOnlyFill]=!1,t}),d=(m({}),e=>{let t=Object.assign({},e);return t[o.Z.layoutParams.structure.galleryLayout]=a.Z[o.Z.layoutParams.structure.galleryLayout].MIX,t[o.Z.layoutParams.crop.method]=a.Z[o.Z.layoutParams.crop.method].FILL,t[o.Z.layoutParams.crop.enable]=!0,t[o.Z.layoutParams.crop.ratios]=[1],t[o.Z.layoutParams.info.placement]=a.Z[o.Z.layoutParams.info.placement].OVERLAY,t[o.Z.layoutParams.structure.scrollDirection]=a.Z[o.Z.layoutParams.structure.scrollDirection].VERTICAL,t[o.Z.layoutParams.structure.gallerySpacing]=0,t[o.Z.layoutParams.structure.layoutOrientation]=a.Z[o.Z.layoutParams.structure.layoutOrientation].VERTICAL,t[o.Z.layoutParams.groups.groupSize]=3,t[o.Z.layoutParams.groups.allowedGroupTypes]=[a.Z[o.Z.layoutParams.groups.allowedGroupTypes][1],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["2h"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["2v"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3t"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3b"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3l"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3r"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3v"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3h"]],t[o.Z.layoutParams.groups.density]=.48,t[o.Z.layoutParams.structure.responsiveMode]=a.Z[o.Z.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,t[o.Z.layoutParams.targetItemSize.value]=86,t[o.Z.layoutParams.targetItemSize.minimum]=50,t[o.Z.layoutParams.groups.groupByOrientation]=!0,t[o.Z.layoutParams.groups.repeatingGroupTypes]=[a.Z[o.Z.layoutParams.groups.allowedGroupTypes][1],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3l"],a.Z[o.Z.layoutParams.groups.allowedGroupTypes][1],a.Z[o.Z.layoutParams.groups.allowedGroupTypes]["3r"]],t[o.Z.layoutParams.crop.enableSmartCrop]=!1,t[o.Z.layoutParams.structure.scatter.randomScatter]=0,t[o.Z.layoutParams.structure.scatter.manualScatter]="",t[o.Z.layoutParams.structure.numberOfColumns]=1,t[o.Z.layoutParams.groups.numberOfGroupsPerRow]=0,t[o.Z.layoutParams.structure.groupsOrder]=a.Z[o.Z.layoutParams.structure.groupsOrder].BY_HEIGHT,t.fixedColumns=1,t}),p=(d({}),e=>{let t=Object.assign({},e);return t[o.Z.layoutParams.structure.galleryLayout]=a.Z[o.Z.layoutParams.structure.galleryLayout].PANORAMA,t[o.Z.layoutParams.crop.enable]=!1,t[o.Z.layoutParams.structure.scrollDirection]=a.Z[o.Z.layoutParams.structure.scrollDirection].VERTICAL,t[o.Z.layoutParams.structure.layoutOrientation]=a.Z[o.Z.layoutParams.structure.layoutOrientation].VERTICAL,t[o.Z.layoutParams.groups.groupSize]=1,t[o.Z.layoutParams.groups.allowedGroupTypes]=[a.Z[o.Z.layoutParams.groups.allowedGroupTypes][1]],t[o.Z.layoutParams.structure.responsiveMode]=a.Z[o.Z.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,t[o.Z.layoutParams.structure.numberOfColumns]=1,t[o.Z.layoutParams.crop.cropOnlyFill]=!1,t[o.Z.behaviourParams.gallery.horizontal.loop]=!1,t.fixedColumns=1,t}),g=(p({}),e=>{let t=Object.assign({},e);return t[o.Z.layoutParams.structure.galleryLayout]=a.Z[o.Z.layoutParams.structure.galleryLayout].SLIDER,t[o.Z.layoutParams.crop.enable]=!0,t[o.Z.layoutParams.structure.scrollDirection]=a.Z[o.Z.layoutParams.structure.scrollDirection].HORIZONTAL,t[o.Z.layoutParams.structure.layoutOrientation]=a.Z[o.Z.layoutParams.structure.layoutOrientation].HORIZONTAL,t[o.Z.layoutParams.groups.groupSize]=1,t[o.Z.layoutParams.groups.allowedGroupTypes]=[a.Z[o.Z.layoutParams.groups.allowedGroupTypes][1]],t[o.Z.layoutParams.structure.numberOfGridRows]=1,t[o.Z.layoutParams.crop.enableSmartCrop]=!1,t[o.Z.layoutParams.structure.responsiveMode]=a.Z[o.Z.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,t[o.Z.behaviourParams.gallery.horizontal.enableScrollSnap]=!0,t[o.Z.layoutParams.crop.cropOnlyFill]=!0,t[o.Z.behaviourParams.gallery.horizontal.slideAnimation]=a.Z[o.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,t});g({});var y=function(e){e[o.Z.behaviourParams.item.content.placementAnimation]=a.Z[o.Z.behaviourParams.item.content.placementAnimation].NO_EFFECT,e[o.Z.behaviourParams.item.overlay.hoverAnimation]=a.Z[o.Z.behaviourParams.item.overlay.hoverAnimation].NO_EFFECT,e[o.Z.behaviourParams.item.content.hoverAnimation]=a.Z[o.Z.behaviourParams.item.content.hoverAnimation].NO_EFFECT};const _=e=>{let t=Object.assign({},e);return t[o.Z.layoutParams.structure.galleryLayout]=a.Z[o.Z.layoutParams.structure.galleryLayout].SLIDESHOW,t[o.Z.layoutParams.crop.ratios]=["100%/100%"],t[o.Z.layoutParams.structure.responsiveMode]=a.Z[o.Z.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,t[o.Z.layoutParams.crop.enable]=!0,t[o.Z.layoutParams.structure.scrollDirection]=a.Z[o.Z.layoutParams.structure.scrollDirection].HORIZONTAL,t[o.Z.layoutParams.structure.gallerySpacing]=0,t[o.Z.layoutParams.structure.layoutOrientation]=a.Z[o.Z.layoutParams.structure.layoutOrientation].HORIZONTAL,t[o.Z.layoutParams.groups.groupSize]=1,t[o.Z.layoutParams.info.placement]=a.Z[o.Z.layoutParams.info.placement].BELOW,t[o.Z.layoutParams.groups.allowedGroupTypes]=[a.Z[o.Z.layoutParams.groups.allowedGroupTypes][1]],t[o.Z.stylingParams.itemBorderWidth]=0,t[o.Z.stylingParams.itemBorderRadius]=0,t[o.Z.stylingParams.itemBorderColor]=void 0,t[o.Z.layoutParams.structure.numberOfGridRows]=1,y(t),t[o.Z.layoutParams.crop.enableSmartCrop]=!1,t[o.Z.layoutParams.targetItemSize.value]=550,t[o.Z.layoutParams.structure.numberOfColumns]=1,t[o.Z.behaviourParams.gallery.horizontal.enableScrollSnap]=!0,t[o.Z.layoutParams.crop.cropOnlyFill]=!1,t[o.Z.layoutParams.structure.scatter.randomScatter]=0,t[o.Z.layoutParams.structure.scatter.manualScatter]="",t[o.Z.layoutParams.structure.itemSpacing]=0,t.fixedColumns=1,t},v=(_({}),e=>{let t=Object.assign({},e);return t[o.Z.layoutParams.structure.galleryLayout]=a.Z[o.Z.layoutParams.structure.galleryLayout].THUMBNAIL,t[o.Z.layoutParams.crop.ratios]=["100%/100%"],t[o.Z.layoutParams.structure.responsiveMode]=a.Z[o.Z.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,t[o.Z.layoutParams.crop.enable]=!0,t[o.Z.layoutParams.info.placement]=a.Z[o.Z.layoutParams.info.placement].OVERLAY,t[o.Z.layoutParams.structure.scrollDirection]=a.Z[o.Z.layoutParams.structure.scrollDirection].HORIZONTAL,t[o.Z.layoutParams.structure.gallerySpacing]=0,t[o.Z.layoutParams.structure.layoutOrientation]=a.Z[o.Z.layoutParams.structure.layoutOrientation].HORIZONTAL,t[o.Z.layoutParams.groups.groupSize]=1,t[o.Z.layoutParams.groups.allowedGroupTypes]=[a.Z[o.Z.layoutParams.groups.allowedGroupTypes][1]],t[o.Z.layoutParams.structure.numberOfGridRows]=1,t[o.Z.layoutParams.crop.enableSmartCrop]=!1,t[o.Z.layoutParams.thumbnails.enable]=!0,t[o.Z.behaviourParams.gallery.horizontal.enableScrollSnap]=!0,t[o.Z.layoutParams.crop.cropOnlyFill]=!1,t[o.Z.layoutParams.structure.scatter.randomScatter]=0,t[o.Z.layoutParams.structure.scatter.manualScatter]="",t[o.Z.layoutParams.structure.itemSpacing]=0,t[o.Z.layoutParams.targetItemSize.value]=550,t}),f=(v({}),e=>{let t=Object.assign({},e);return t[o.Z.layoutParams.structure.galleryLayout]=a.Z[o.Z.layoutParams.structure.galleryLayout].EMPTY,t});f({});var P=i(82470);const b=e=>{const t=a.Z[o.Z.layoutParams.structure.galleryLayout];switch(e[o.Z.layoutParams.structure.galleryLayout]){case t.MASONRY:return(e=>{let t=Object.assign({},e);t=m(t);const i=t[o.Z.layoutParams.structure.layoutOrientation]===a.Z[o.Z.layoutParams.structure.layoutOrientation].VERTICAL,s=e[o.Z.layoutParams.targetItemSize.value];return t.targetItemSize=(0,r.fE)(t,i?8*s+200:5*s+200),t=(0,r._Q)(t),t=(0,r.c4)(t),t})(e);case t.GRID:return(e=>{let t=Object.assign({},e);return t=h(t),t.targetItemSize=(0,r.fE)(t,Math.round(8.5*t[o.Z.layoutParams.targetItemSize.value]+150)),t=(0,r._Q)(t),t=(0,r._A)(t),t=(0,r.$e)(t),t})(e);case t.THUMBNAIL:return(e=>{let t=Object.assign({},e);return t=v(t),t.targetItemSize=(0,r.fE)(t),t=(0,r.$e)(t),t})(e);case t.SLIDER:return(e=>{let t=Object.assign({},e);return t=g(t),t.targetItemSize=(0,r.fE)(t),t=(0,r.$e)(t),t})(e);case t.SLIDESHOW:return(e=>{let t=Object.assign({},e);return t=_(t),t.targetItemSize=(0,r.fE)(t),t=(0,r.$e)(t),t})(e);case t.PANORAMA:return(e=>{let t=Object.assign({},e);return t=p(t),t.targetItemSize=(0,r.fE)(t),t})(e);case t.COLUMN:return(e=>{let t=Object.assign({},e);return t=c(t),t.targetItemSize=(0,r.fE)(t),t})(e);case t.MAGIC:return console.error("A layout generated by the magicLayoutSeed is no longer supported as of Pro Gallery v5"),e;case t.FULLSIZE:return(e=>{let t=Object.assign({},e);return t=u(t),t.targetItemSize=(0,r.fE)(t),t})(e);case t.BRICKS:return(e=>{let t=Object.assign({},e);return t=n(t),t.targetItemSize=(0,r.fE)(t),t})(e);case t.MIX:return(e=>{let t=Object.assign({},e);return t=d(t),t.targetItemSize=(0,r.fE)(t),t})(e);case t.ALTERNATE:return(e=>{let t=Object.assign({},e);return t=s(t),t.targetItemSize=(0,r.fE)(t),t})(e);case t.EMPTY:return(e=>{let t=Object.assign({},e);return t=f(t),t=(0,r.gJ)(t),t.targetItemSize=(0,r.fE)(t,Math.round(9*t[o.Z.layoutParams.targetItemSize.value]+100)),t})(e);case t.JSON_FIXED:return(e=>{try{const t=e.jsonStyleParams?JSON.parse(e.jsonStyleParams):{};return(0,P.oZ)(e,(0,P.Tx)(t))}catch(e){return{}}})(e);case t.COLLAGE:default:return(e=>{let t=Object.assign({},e);t=l(t);const i=e[o.Z.layoutParams.targetItemSize.value];return t.targetItemSize=(0,r.fE)(t,Math.round(5*i+500)),t})(e)}}},99233:function(e,t,i){"use strict";i.d(t,{A:function(){return r}});const r={NUMBER:"NUMBER",BOOLEAN:"BOOLEAN",OPTIONS:"OPTIONS",TEXT:"TEXT",COLOR_PICKER:"COLOR_PICKER",FONT_PICKER:"FONT_PICKER",BUTTON:"BUTTON",MULTISELECT:"MULTISELECT",MULTIREPEAT:"MULTIREPEAT",TRANSFORM:"TRANSFORM"}},29169:function(e,t,i){"use strict";i.d(t,{Z:function(){return ct}});var r=i(92712),o=i(5329),a=i(36390),s=i(13876),n=i(82206),l=i(37178),u=i(77879);const c={lll:"1,2h",llp:"1,3r",lpl:"1,2h",pll:"1,2h,3l",lpp:"1,2h,3r,3h",plp:"1,2h,3l,3r,3h",ppl:"1,2h,3l,3h",ppp:"1,2h,3l,3r,3h"},h={lll:"1,2v,3t,3b,3v",llp:"1,2v,3t,3v",lpl:"1,2v,3t,3b,3v",pll:"1,2v,3b,3v",lpp:"1,2v,3t",plp:"1,2v",ppl:"1,3b",ppp:"1,2h"},m={1:[[1]],2:[[1],[1,2],[2]],3:[[1],[1,2],[1,2,3],[2,3],[3]]};class d{constructor(e){if(this.idx=e.idx,this.stripIdx=e.stripIdx,this.inStripIdx=e.inStripIdx,this.top=e.top,this.showAllItems=e.showAllItems,this.isLastItems=e.isLastItems,this.dummyItems=[],this.targetItemSize=e.targetItemSize,this.items=e.items.map((e=>(e.Group=this,e))),e.styleParams){const{styleParams:t}=e;this.scrollDirection=t[l.Z.layoutParams.structure.scrollDirection],this.cubeType=t[l.Z.layoutParams.crop.method],this.cubeImages=t[l.Z.layoutParams.crop.enable],this.layoutOrientation=t[l.Z.layoutParams.structure.layoutOrientation],this.minItemSize=t[l.Z.layoutParams.targetItemSize.minimum],this.collageDensity=t[l.Z.layoutParams.groups.density],this.groupTypes=String(t[l.Z.layoutParams.groups.allowedGroupTypes]),this.repeatingGroupTypes=String(t[l.Z.layoutParams.groups.repeatingGroupTypes]),this.rotatingCropRatios=t[l.Z.layoutParams.crop.ratios],this.chooseBestGroup=t[l.Z.layoutParams.groups.groupByOrientation],this.externalInfoHeight=t.externalInfoHeight,this.externalInfoWidth=t.externalInfoWidth,this.imageMargin=t[l.Z.layoutParams.structure.itemSpacing],this.groupSize=t[l.Z.layoutParams.groups.groupSize]}this.visible=!0,this.rendered=!0,this.required=!0;let t=this.items.length;for(;!this.isWithinMinItemSize&&t>0;)this.placeItems(t),this.resize(),t--}resize(){"VERTICAL"===this.layoutOrientation?this.resizeToWidth(this.targetItemSize):this.resizeToHeight(this.targetItemSize),this.setLeft(this.left),this.setTop(this.top)}safeGetItem(e){if(this.items[e])return this.items[e];if(this.dummyItems[e])return this.dummyItems[e];{const t=new u.c(Object.assign({},this.items[this.items.length-1].config));return t.idx=t.config.idx+e-(this.items.length-1),t.type="dummy",this.dummyItems[e]=t,t}}setCubedHeight(e){const t=this.cubeImages&&1===this.groupSize&&["FILL","FIT"].includes(this.cubeType)&&0===this.repeatingGroupTypes.length&&this.rotatingCropRatios.length<2;this.cubedHeight=t?e:null}round(){this.isLastGroup&&"VERTICAL"===this.scrollDirection?this.width=this.stripWidth-this.left:this.width=Math.round(this.width),this.height=Math.round(this.height);for(const e of this.items)e.width=Math.round(e.width),e.height=Math.round(e.height),e.group={width:this.width,height:this.height};const e=this.imageMargin;switch(this.type){default:case"1":this.safeGetItem(0).width=this.width-e,this.safeGetItem(0).height=this.height-e;break;case"2v":this.safeGetItem(0).width=this.safeGetItem(1).width=this.width-e,this.safeGetItem(0).height=this.height-this.safeGetItem(1).height-2*e;break;case"2h":this.safeGetItem(0).height=this.safeGetItem(1).height=this.height-e,this.safeGetItem(0).width=this.width-this.safeGetItem(1).width-2*e;break;case"3t":this.safeGetItem(0).width=this.width-e,this.safeGetItem(0).height=this.height-this.safeGetItem(1).height-2*e,this.safeGetItem(1).width=this.width-this.safeGetItem(2).width-2*e,this.safeGetItem(2).height=this.safeGetItem(1).height;break;case"3b":this.safeGetItem(0).width=this.width-this.safeGetItem(1).width-2*e,this.safeGetItem(1).height=this.safeGetItem(0).height,this.safeGetItem(2).height=this.height-this.safeGetItem(1).height-2*e,this.safeGetItem(2).width=this.width-e;break;case"3l":this.safeGetItem(1).height=this.height-this.safeGetItem(2).height-2*e,this.safeGetItem(2).width=this.safeGetItem(1).width,this.safeGetItem(0).width=this.width-this.safeGetItem(1).width-2*e,this.safeGetItem(0).height=this.height-e;break;case"3r":this.safeGetItem(0).height=this.height-this.safeGetItem(1).height-2*e,this.safeGetItem(1).width=this.safeGetItem(0).width,this.safeGetItem(2).width=this.width-this.safeGetItem(1).width-2*e,this.safeGetItem(2).height=this.height-e;break;case"3v":this.safeGetItem(0).width=this.width-e,this.safeGetItem(1).width=this.width-e,this.safeGetItem(2).width=this.width-e,this.safeGetItem(2).height=this.height-this.safeGetItem(0).height-this.safeGetItem(1).height-3*e;break;case"3h":this.safeGetItem(0).height=this.height-e,this.safeGetItem(1).height=this.height-e,this.safeGetItem(2).height=this.height-e,this.safeGetItem(2).width=this.width-this.safeGetItem(0).width-this.safeGetItem(1).width-3*e}}getGroupType(e){if(this.repeatingGroupTypes){const e=String(this.repeatingGroupTypes).split(",");return e[this.idx%e.length]}{const t="VERTICAL"===this.layoutOrientation;let i;if(this.chooseBestGroup){const e=this.items.map((e=>e.orientation.slice(0,1))).join("");i=(t?c:h)[e]}else 3!==this.items.length&&3!==e||(i=t?"1,2h,3l,3r,3h":"1,2v,3t,3b,3v");2!==this.items.length&&2!==e||(i=t?"1,2h":"1,2v"),1!==this.items.length&&1!==e||(i="1");let r=i.length>0?i.split(","):[];if(this.groupTypes){const e=this.groupTypes.split(",");e.length>1?(r=r.filter((t=>e.indexOf(t)>=0)),0===r.length&&(r=["1"])):r=e}if(this.collageDensity>=0){const e=this.collageDensity,t=parseInt(r[r.length-1]),i=m[t],o=i[Math.floor(e*(i.length-1))];r=r.filter((e=>o.indexOf(parseInt(e))>=0)),0===r.length&&(r=["1"])}return r[this.calculateRandomSeed(r.length)]||"1"}}calculateRandomSeed(e){let t;return t="VERTICAL"===this.layoutOrientation?this.items[0].seed%e:(this.inStripIdx+this.stripIdx)%e,Math.round(Math.min(Math.max(0,t),e-1))}placeItems(e){this.type=this.getGroupType(e);let t,i=[],r=0,o=0;switch(this.type){default:case"1":t=this.safeGetItem(0),t.pinToCorner("top-left"),i.push(t),r=t.width,o=t.height;break;case"2v":t=this.safeGetItem(0),t.pinToCorner("top-left"),i.push(t),r=t.width,o=t.height,t=this.safeGetItem(1),t.pinToCorner("bottom-left"),t.resize(r/t.width),o+=t.height,i.push(t);break;case"2h":t=this.safeGetItem(0),t.pinToCorner("top-left"),t.innerOffset=[0,0],i.push(t),r=t.width,o=t.height,t=this.safeGetItem(1),t.pinToCorner("top-right"),t.innerOffset=[0,0],t.resize(o/t.height),r+=t.width,i.push(t);break;case"3b":t=this.safeGetItem(0),t.pinToCorner("top-left"),i.push(t),r=t.width,o=t.height,t=this.safeGetItem(1),t.pinToCorner("top-right"),t.resize(o/t.height),r+=t.width,i.push(t),t=this.safeGetItem(2),t.pinToCorner("bottom-left"),t.resize(r/t.width),o+=t.height,i.push(t);break;case"3t":t=this.safeGetItem(1),t.pinToCorner("bottom-left"),i.push(t),r=t.width,o=t.height,t=this.safeGetItem(2),t.pinToCorner("bottom-right"),t.resize(o/t.height),r+=t.width,i.push(t),t=this.safeGetItem(0),t.pinToCorner("top-left"),t.resize(r/t.width),o+=t.height,i=[t].concat(i);break;case"3r":t=this.safeGetItem(0),t.pinToCorner("top-left"),i.push(t),r=t.width,o=t.height,t=this.safeGetItem(1),t.pinToCorner("bottom-left"),t.resize(r/t.width),o+=t.height,i.push(t),t=this.safeGetItem(2),t.pinToCorner("top-right"),t.resize(o/t.height),r+=t.width,i.push(t);break;case"3l":t=this.safeGetItem(1),t.pinToCorner("top-right"),i.push(t),r=t.width,o=t.height,t=this.safeGetItem(2),t.pinToCorner("bottom-right"),t.resize(r/t.width),o+=t.height,i.push(t),t=this.safeGetItem(0),t.pinToCorner("top-left"),t.resize(o/t.height),r+=t.width,i=[t].concat(i);break;case"3v":t=this.safeGetItem(0),t.pinToCorner("top-left"),t.setPosition("relative"),i.push(t),r=t.width,o=t.height,t=this.safeGetItem(2),t.pinToCorner("bottom-left"),t.setPosition("relative"),t.resize(r/t.width),o+=t.height,i.push(t),t=this.safeGetItem(1),t.setPosition("relative"),t.resize(r/t.width),o+=t.height,t.pinToCorner("top",i[0]),i=[i[0],t,i[1]];break;case"3h":t=this.safeGetItem(0),t.pinToCorner("top-left"),t.setPosition("relative"),i.push(t),r=t.width,o=t.height,t=this.safeGetItem(2),t.pinToCorner("top-right"),t.setPosition("relative"),t.resize(o/t.height),r+=t.width,i.push(t),t=this.safeGetItem(1),t.setPosition("relative"),t.resize(o/t.height),r+=t.width,t.pinToCorner("left",i[0]),i=[i[0],t,i[1]]}this.width=r,this.height=o,this.items=i,this.placed=!0}resizeToHeight(e){this.height=e,this.width=this.getWidthByHeight(e),this.resizeItems()}resizeToWidth(e){this.width=e,this.height=this.getHeightByWidth(e),this.resizeItems()}resizeItems(){const e=["3b","3r"].indexOf(this.type)>=0?this.items.slice().reverse():this.items;e.forEach(((t,i)=>{t.resize(this.getItemDimensions(e,i)),t.group={top:this.top,left:this.left,width:this.width,height:this.height},t.groupOffset={bottom:this.top+this.height,right:this.left+this.width}}))}getItemDimensions(e,t){const i=this.imageMargin;switch(this.type){default:case"1":case"2v":case"3v":return{width:this.width-i};case"2h":case"3h":return{height:this.height-i};case"3t":case"3b":if(0===t){return{width:this.width-i}}return{height:this.height-e[0].height-2*i};case"3r":case"3l":if(0===t){return{height:this.height-i}}return{width:this.width-e[0].width-2*i}}}getHeightByWidth(e){let t=1,i=1;const r=this.imageMargin,o=this.items.map((e=>e.width/e.height));switch(this.type){default:case"1":t=1/o[0],i=1-t;break;case"2h":t=1/(o[0]+o[1]),i=1-2*t;break;case"2v":t=1/o[0]+1/o[1],i=2-t;break;case"3h":t=1/(o[0]+o[1]+o[2]),i=1-3*t;break;case"3v":t=1/o[0]+1/o[1]+1/o[2],i=3-t;break;case"3t":t=1/(o[2]+o[1])+1/o[0],i=2-2/(o[2]+o[1])+1/o[0];break;case"3b":t=1/(o[0]+o[1])+1/o[2],i=2-2/(o[0]+o[1])+1/o[2];break;case"3l":t=(o[1]+o[2])/(o[0]*o[1]+o[1]*o[2]+o[0]*o[2]),i=2-t*(2+o[0]);break;case"3r":t=(o[0]+o[1])/(o[0]*o[1]+o[1]*o[2]+o[0]*o[2]),i=2-t*(2+o[2])}return e*t+r*i}getWidthByHeight(e){let t=1,i=1;const r=this.imageMargin,o=this.items.map((e=>e.width/e.height));switch(this.type){default:case"1":t=o[0],i=1-t;break;case"2h":t=o[0]+o[1],i=2-t;break;case"2v":t=1/(1/o[0]+1/o[1]),i=1-2*t;break;case"3h":t=o[0]+o[1]+o[2],i=3-t;break;case"3v":t=1/(1/o[0]+1/o[1]+1/o[2]),i=1-3*t;break;case"3t":t=1/(1/(o[2]+o[1])+1/o[0]),i=(2/(o[2]+o[1])+1/o[0]-2)*t;break;case"3b":t=1/(1/(o[0]+o[1])+1/o[2]),i=(2/(o[0]+o[1])+1/o[2]-2)*t;break;case"3l":t=(o[0]*o[1]+o[1]*o[2]+o[0]*o[2])/(o[1]+o[2]),i=2+o[0]-2*t;break;case"3r":t=(o[0]*o[1]+o[1]*o[2]+o[0]*o[2])/(o[0]+o[1]),i=2+o[2]-2*t}return e*t+r*i}setTop(e){this.top=e||0;for(const t of this.items)t.groupOffset={top:e,bottom:e+this.height}}setLeft(e){this.left=e||0;for(const t of this.items)t.groupOffset={left:e,right:e+this.width}}get id(){return"g"+this.idx+"_"+(this.items[0]||{}).id}get ratio(){return this.width/this.height}get height(){return this.cubedHeight||this._height}set height(e){this._height=e}get totalHeight(){return this.height+this.infoHeight}get infoHeight(){return this.externalInfoHeight||0}get infoWidth(){return this.Column?this.Column.infoWidth:this.externalInfoWidth||0}get bottom(){return this.top+this.height}get right(){return this.left+this.width}set items(e){this._items=e}get items(){return this._items}get realItems(){return this._items.filter((e=>"dummy"!==e.type))}get isWithinMinItemSize(){return!(0===this.items.length||!this.placed)&&(1===this.items.length||this.items.reduce(((e,t)=>{const i=Math.min(t.width,t.height)>=this.minItemSize;return e&&i}),!0))}get scheme(){return{id:this.id,idx:this.idx,stripIdx:this.stripIdx,inStripIdx:this.inStripIdx,isLastGroup:this.isLastGroup,items:this.items.map((e=>e.scheme)),type:this.type,width:this.width,height:this.height,infoHeight:this.infoHeight,infoWidth:this.infoWidth,ratio:this.ratio,top:this.top,left:this.left,right:this.right,bottom:this.bottom,visible:this.visible,rendered:this.rendered,required:this.required}}}var p=class{constructor(e){this.uniqueId=s.Z.generateUUID(),this.isGalleryGroup=!0,e.dto&&e.dto.dto&&(e.dto=e.dto.dto,s.Z.isDev()&&console.warn("Item core is created with already existing item core")),this.dto=Object.assign({},e.dto),e.scheme?this.processScheme(e.scheme):this.processScheme(new d({dto:e.dto}).scheme),e.items?this.items=e.items:console.warn("Pro Gallery created Gallery Group without items",e)}processScheme(e){this.id=e.id,this.idx=e.idx,this.width=e.width,this.height=e.height,this.totalHeight=e.totalHeight,this.ratio=e.ratio,this.top=e.top,this.left=e.left,this.right=e.right,this.bottom=e.bottom,this.visible=e.visible,this.rendered=e.rendered,this.required=e.required}renderProps(e){return{className:"group",id:this.id,idx:this.idx,key:this.key,type:this.type,top:this.top,left:this.left,right:this.right,bottom:this.bottom,width:this.width,height:this.height,totalHeight:this.totalHeight,items:this.items,visible:this.visible,rendered:this.rendered,required:this.required,galleryConfig:e}}get key(){return"group_"+this.id}};class g{static convertDtoToLayoutItem(e){if(!!(e.id&&e.width>0&&e.height>0))return e;{const t=e.metadata||e.metaData,i="object"==typeof t?t:s.Z.parseStringObject(t)||{};return Object.assign({id:e.itemId||e.photoId,width:i.width,height:i.height},e)}}static convertToGalleryItems(e,t={},i=[]){e.galleryItems=[];for(let r=0;r0)&&1.5*this.targetItemSize0)return this.groups.length>=i;const{galleryWidth:a}=this.container;let s;if("HORIZONTAL"===r)s=!1;else{const i=a/(this.ratio+e.ratio)-o,r=a/this.ratio-o;s=!isNaN(i)&&!isNaN(r)&&(r<0||i<0&&Math.abs(r)0}get lastGroup(){return this.groups[this.groups.length-1]}get scheme(){return{idx:this.idx,groups:this.groups.map((e=>e.scheme)),width:this.width,height:this.height,ratio:this.ratio,isFullWidth:this.isFullWidth}}}class v{constructor(e,t,i,r,o){this.idx=e,this.groups=[],this.height=0,this.width=t,this.left=i,this.cubedHeight=r,this.infoWidth=o||0}addGroup(e){this.addGroups([e])}addGroups(e){this.groups=this.groups.concat(e),e.forEach((e=>{e.columnIdx=this.idx,e.Column=this}))}get totalWidth(){return this.width+this.infoWidth}get scheme(){return{idx:this.idx,groups:this.groups.map((e=>e.scheme)),width:this.width,height:this.height}}}var f=new class{set layout(e){this._layout=Object.assign({},e)}get layout(){return this._layout}};class P{constructor(e){this.ready=!1,this.pointer=0,this.layoutItems=[],this.findNeighborItem=this.findNeighborItem.bind(this),this.updateParams(e),!1!==this.createLayoutOnInit&&this.createLayout(e)}updateParams(e){this.srcItems=e.items,this.styleParams=y.P.addDefaultStyleParams(e.styleParams),this.container=y.P.convertContainer(e.container,this.styleParams);const t=e.options||{};this.useExistingLayout=!!t.useExistingLayout,this.createLayoutOnInit=t.createLayoutOnInit,this.showAllItems=!!t.showAllItems||!!e.showAllItems,this.useLayoutStore=!!t.useLayoutStore}verifyGalleryState(){if(!this.container.galleryWidth)throw this.ready=!1,new Error("Layouter: cannot create layout, galleryWidth is undefined or 0");if(!this.styleParams.targetItemSize)throw this.ready=!1,new Error("Layouter: cannot create layout, targetItemSize is undefined or 0")}calcNumberOfColumns(e,t){let i=1;if("VERTICAL"===this.styleParams[l.Z.layoutParams.structure.layoutOrientation])if(this.styleParams.fixedColumns>0)i=this.styleParams.fixedColumns;else{const r=e/t,o=[Math.floor,Math.ceil],a=o.map((e=>e(r))).map((t=>Math.round(e/t))).map((e=>Math.abs(t-e)));i=(0,o[a.indexOf(Math.min(...a))])(r)||1}else i=1;return i}findShortestColumn(e,t){let i=e[0];if("LEFT_TO_RIGHT"===this.styleParams[l.Z.layoutParams.structure.groupsOrder])i=e[t%e.length];else{let t=-1;for(const r of e){const e=r.height;(e0){if(this.useLayoutStore)Object.assign(this,f.layout);else if("VERTICAL"===this.styleParams[l.Z.layoutParams.structure.layoutOrientation]){this.groups.slice(-3).forEach((e=>{const t=this.columns[e.columnIdx];t&&(t.height-=e.totalHeight,t.groups.splice(-1,1)),this.groups.splice(-1,1),e.realItems.forEach((()=>{this.layoutItems.splice(-1,1),this.pointer--})),this.groupIdx--}))}else{if("HORIZONTAL"===this.scrollDirection){this.groups.slice(-1).forEach((e=>{const t=this.columns[0];t&&t.groups.splice(-1,1);const i=this.strips[0];i&&(i.setWidth(i.width-e.width),i.ratio=i.width/i.height,i.groups.splice(-1,1),this.strip=i),this.strips=[],this.groups.splice(-1,1),e.realItems.forEach((()=>{this.layoutItems.splice(-1,1),this.pointer--})),this.groupIdx--})),this.galleryHeight=0}else{const e=this.strips.slice(-2);e&&(e.forEach((e=>{if(e){this.strips.splice(-1,1);e.groups.forEach((e=>{this.groups.splice(-1,1),e.items.forEach((()=>{this.layoutItems.splice(-1,1),this.pointer--})),this.groupIdx--}))}})),this.galleryHeight=this.strips.reduce(((e,t)=>e+t.height),0),this.strip=new _({idx:this.strips.length+1,container:this.container,groupsPerStrip:this.styleParams[l.Z.layoutParams.groups.numberOfGroupsPerRow],scrollDirection:this.styleParams[l.Z.layoutParams.structure.scrollDirection],targetItemSize:this.targetItemSize}))}this.groupItems=[]}this.item={},this.pointer=Math.max(0,this.pointer),this.maxLoops=10*this.srcItems.length}else{if(this.pointer=0,this.firstGroup=!1,this.layoutItems=[],this.groups=[],this.strips=[],this.styleParams.forceFullHeight)this.targetItemSize=Math.sqrt(this.container.galleryHeight*this.container.galleryWidth/this.srcItems.length);else{let e;e="function"==typeof this.styleParams.targetItemSize?this.styleParams.targetItemSize():this.styleParams.targetItemSize,this.targetItemSize=Math.floor(e)+Math.ceil(2*(this.styleParams[l.Z.layoutParams.structure.itemSpacing]/2-this.styleParams[l.Z.layoutParams.structure.gallerySpacing]))}this.galleryWidth=Math.floor(this.container.galleryWidth),this.maxGroupSize=this.getMaxGroupSize(),this.groupIdx=0,this.item={},this.groupItems=[],this.group={},this.bounds=this.container.bounds||{},this.strip=new _({idx:1,container:this.container,groupsPerStrip:this.styleParams[l.Z.layoutParams.groups.numberOfGroupsPerRow],scrollDirection:this.styleParams[l.Z.layoutParams.structure.scrollDirection],targetItemSize:this.targetItemSize}),this.galleryHeight=0,this.numOfCols=this.calcNumberOfColumns(this.galleryWidth,this.targetItemSize),this.targetItemSize="VERTICAL"===this.styleParams[l.Z.layoutParams.structure.layoutOrientation]?Math.floor(this.galleryWidth/this.numOfCols):this.targetItemSize;const{externalInfoWidth:e}=this.styleParams,t=this.styleParams[l.Z.layoutParams.structure.columnRatios],i=this.styleParams[l.Z.layoutParams.structure.itemSpacing],r=this.styleParams[l.Z.layoutParams.crop.ratios];let o=!1;if(t&&t.length>0){for(o=t.map(Number);o.lengthe+t),0);o=o.map((t=>Math.round(t*=e)))}let a,s=0,n=this.galleryWidth;this.columns=Array(this.numOfCols).fill(0).map(((t,l)=>{let u=o?o[l]:Math.round(n/(this.numOfCols-l));const c=s;s+=u,n-=u;const h=Math.round(e>1?e:e*u)||0;return u-=h,a=a||(this.targetItemSize-h-i)/r[0]+i,new v(l,u,c,a,h)})),this.maxLoops=10*this.srcItems.length}}createLayout(e){for(void 0!==e&&this.updateParams(e),this.verifyGalleryState(),this.prepareLayoutParams();this.srcItems[this.pointer];){if(6===this.imagesLeft&&this.saveExistingLayout(),this.maxLoops--,this.maxLoops<=0)return console.error("Cannot create layout, maxLoops reached!!!"),!1;if(this.item=new u.c({idx:this.pointer,inGroupIdx:this.groupItems.length+1,scrollTop:this.galleryHeight,dto:this.srcItems[this.pointer],container:this.container,styleParams:this.styleParams}),this.layoutItems[this.pointer]=this.item,this.groupItems.push(this.item),this.groupItems.length(t.cubeImages=!0,t.cropRatio=t.ratio=t.width/(t.height*e),t.height*=e,t))),this.groups.map((t=>(t.height*=e,t.setTop(t.top*e),t.resizeItems(),t)))}return this.lastGroup=this.group,this.colWidth=Math.floor(this.galleryWidth/this.numOfCols),this.height=this.galleryHeight-2*(this.styleParams[l.Z.layoutParams.structure.itemSpacing]/2-this.styleParams[l.Z.layoutParams.structure.gallerySpacing]),this.width=this.lastGroup.left+this.lastGroup.width,this.ready=!0,this.scheme}lastVisibleItemIdxInHeight(e){for(let t=this.items.length-1;t>=0;t--){if(this.items[t].offset.top{let r,o,a,s=null,n={};return this.layoutItems.forEach((l=>{r=l.offset.top+l.height/2,o=l.offset.left+l.width/2,a=Math.sqrt(Math.pow(r-t,2)+Math.pow(o-e,2)),(null===s||a>0&&arir>t));break;default:r=o(i.offset.right,i.offset.top+i.height/2,((e,t,i)=>i>e))}return r.idx>=0?r.idx:(console.warn("Could not find offset for itemIdx",e,t),e)}getMaxGroupSize(){let e=1;try{const t="string"==typeof this.styleParams[l.Z.layoutParams.groups.allowedGroupTypes]&&this.styleParams[l.Z.layoutParams.groups.allowedGroupTypes].length>0?this.styleParams[l.Z.layoutParams.groups.allowedGroupTypes].split(","):this.styleParams[l.Z.layoutParams.groups.allowedGroupTypes];e=t.length>0?t.reduce(((e,t)=>Math.max(e,parseInt(t))),1):Number(t),e=Math.min(e,this.styleParams[l.Z.layoutParams.groups.groupSize])}catch(t){console.error("couldn't calculate max group size - returing 3 (?)",t),e=3}return e}get isLastImage(){return!this.srcItems[this.pointer+1]}get isLastImages(){return!this.srcItems[this.pointer+1]}get imagesLeft(){return this.srcItems.length-this.pointer-1}get items(){return this.layoutItems}get scheme(){return{items:this.items.map((e=>e.scheme)),groups:this.groups.map((e=>e.scheme)),strips:this.strips.map((e=>e.scheme)),columns:this.columns.map((e=>e.scheme)),height:this.height,width:this.width}}}const b=(0,i(82470).FX)({layoutParams:{crop:{ratios:[1],method:a.Z[l.Z.layoutParams.crop.method].FILL,enable:!1,enableSmartCrop:!1,cropOnlyFill:!1,alignment:a.Z[l.Z.layoutParams.crop.alignment].CENTER},structure:{galleryLayout:-1,galleryRatio:{value:0,includeExternalInfo:!1},scrollDirection:a.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL,gallerySpacing:0,itemSpacing:10,enableStreching:!0,responsiveMode:a.Z[l.Z.layoutParams.structure.responsiveMode].FIT_TO_SCREEN,scatter:{randomScatter:0,manualScatter:""},layoutOrientation:a.Z[l.Z.layoutParams.structure.layoutOrientation].HORIZONTAL,groupsOrder:a.Z[l.Z.layoutParams.structure.groupsOrder].BY_HEIGHT,numberOfGridRows:1,numberOfColumns:3,columnRatios:[]},groups:{groupByOrientation:!0,numberOfGroupsPerRow:0,density:.8,groupSize:3,allowedGroupTypes:[a.Z[l.Z.layoutParams.groups.allowedGroupTypes][1],a.Z[l.Z.layoutParams.groups.allowedGroupTypes]["2h"],a.Z[l.Z.layoutParams.groups.allowedGroupTypes]["2v"],a.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3t"],a.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3b"],a.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3l"],a.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3r"]],repeatingGroupTypes:[]},thumbnails:{size:120,spacing:4,marginToGallery:0,enable:!1,position:a.Z[l.Z.layoutParams.thumbnails.position].OUTSIDE_GALLERY,alignment:a.Z[l.Z.layoutParams.thumbnails.alignment].BOTTOM},navigationArrows:{enable:!0,position:a.Z[l.Z.layoutParams.navigationArrows.position].ON_GALLERY,padding:23,size:23,verticalAlignment:a.Z[l.Z.layoutParams.navigationArrows.verticalAlignment].ITEM_CENTER,type:a.Z[l.Z.layoutParams.navigationArrows.type].DEFAULT_ARROW,container:{type:a.Z[l.Z.layoutParams.navigationArrows.container.type].SHADOW,backgroundColor:"",borderRadius:-1}},targetItemSize:{unit:a.Z[l.Z.layoutParams.targetItemSize.unit].SMART,value:30,minimum:120},info:{sizeUnits:a.Z[l.Z.layoutParams.info.sizeUnits].PERCENT,width:50,height:200,spacing:10,layout:a.Z[l.Z.layoutParams.info.layout].NO_BACKGROUND,placement:a.Z[l.Z.layoutParams.info.placement].OVERLAY,border:{width:0,radius:0,color:""}}},behaviourParams:{item:{clickAction:a.Z[l.Z.behaviourParams.item.clickAction].NOTHING,video:{playTrigger:a.Z[l.Z.behaviourParams.item.video.playTrigger].HOVER,loop:!0,volume:0,enableControls:!1,speed:1,enablePlayButton:!1,enableThumbnailsPlayButton:!1,enablePlaceholder:!0},overlay:{hoveringBehaviour:a.Z[l.Z.behaviourParams.item.overlay.hoveringBehaviour].APPEARS,hoverAnimation:a.Z[l.Z.behaviourParams.item.overlay.hoverAnimation].NO_EFFECT,position:a.Z[l.Z.behaviourParams.item.overlay.position].LEFT,size:100,sizeUnits:a.Z[l.Z.behaviourParams.item.overlay.sizeUnits].PERCENT,padding:0},content:{hoverAnimation:a.Z[l.Z.behaviourParams.item.content.hoverAnimation].NO_EFFECT,loader:a.Z[l.Z.behaviourParams.item.content.loader].BLUR,placementAnimation:a.Z[l.Z.behaviourParams.item.content.placementAnimation].NO_EFFECT,magnificationValue:2,tiltAngleValue:-4},secondaryMedia:{trigger:a.Z[l.Z.behaviourParams.item.secondaryMedia.trigger].OFF,behaviour:a.Z[l.Z.behaviourParams.item.secondaryMedia.behaviour].APPEARS},threeDimensionalScene:{controls:{enableAutoRotate:!1,enablePan:!0,enableRotate:!0,enableZoom:!1},transform:{rotation:"x0y0z0",scale:"x1y1z1",position:"x0y0z0"},playTrigger:a.Z[l.Z.behaviourParams.item.threeDimensionalScene.playTrigger].HOVER,enablePlayButton:!1,enableThumbnailsPlayButton:!1,enablePlaceholder:!0}},gallery:{blockContextMenu:!0,layoutDirection:a.Z[l.Z.behaviourParams.gallery.layoutDirection].LEFT_TO_RIGHT,scrollAnimation:a.Z[l.Z.behaviourParams.gallery.scrollAnimation].NO_EFFECT,enableIndexingShareLinks:!0,horizontal:{enableScrollSnap:!1,navigationDuration:400,blockScroll:!1,loop:!1,slideTransition:a.Z[l.Z.behaviourParams.gallery.horizontal.slideTransition].EASE,slideAnimation:a.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,autoSlide:{behaviour:a.Z[l.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].OFF,interval:4,pauseOnHover:!0,speed:200},slideshowInfo:{buttonsAlignment:a.Z[l.Z.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment].CENTER,enablePlayButton:!1,enableCounter:!1}},vertical:{loadMore:{enable:!1,text:"",amount:a.Z[l.Z.behaviourParams.gallery.vertical.loadMore.amount].ALL}}}},stylingParams:{itemBorderWidth:0,itemBorderRadius:0,itemEnableShadow:!1,itemBorderColor:"",itemShadowBlur:20,itemShadowDirection:135,itemShadowSize:10,itemShadowOpacityAndColor:"",arrowsColor:""},fixedColumns:0});var I=i(42591),S=i(49994),E=i(99233),O=e=>e[l.Z.layoutParams.structure.scrollDirection]===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL,T=(E.A.NUMBER,i(74619)),L=e=>{const t=e[l.Z.layoutParams.groups.repeatingGroupTypes].length>1?"1"===e[l.Z.layoutParams.groups.repeatingGroupTypes].join(""):"1"===e[l.Z.layoutParams.groups.allowedGroupTypes].join(""),i=e[l.Z.layoutParams.info.placement].split(",").filter((e=>!(0,T.mR)(e))).join(",");return t&&(0,T.DT)(i)&&O(e)&&e[l.Z.layoutParams.structure.galleryRatio.value]>0};E.A.BOOLEAN;var w=new class{constructor(){this.options={},this.container={},this.id="",this._cache={}}getOrPutInCache(e,t){return this._cache[e]||(this._cache[e]=t()),this._cache[e]}dumpCache(){this._cache={}}updateParams({options:e,container:t,id:i}){this.dumpCache(),this.id=i||this.id,this.options=e||this.options,this.container=t||this.container,this.fixHeightForHorizontalGalleryIfNeeded()}getGalleryDimensions(){return this.getOrPutInCache("galleryDimensions",(()=>{const e={galleryWidth:Math.ceil(this.getGalleryWidth()),galleryHeight:Math.ceil(this.getGalleryHeight()),scrollBase:this.container.scrollBase?Math.ceil(this.container.scrollBase):0,height:Math.ceil(this.container.height),width:Math.ceil(this.container.width)};return this.container.externalScrollBase&&(e.scrollBase+=this.container.externalScrollBase),this.options[l.Z.layoutParams.thumbnails.enable]&&this.options[l.Z.layoutParams.thumbnails.position]===a.Z[l.Z.layoutParams.thumbnails.position].OUTSIDE_GALLERY&&(e.galleryHeight-=this.getThumbnailHeightDelta(),e.galleryWidth-=this.getThumbnailWidthDelta()),this.options[l.Z.layoutParams.thumbnails.enable]&&(e.navigationBarHeight=this.getThumbnailHeightDelta()||e.galleryHeight,e.navigationBarWidth=this.getThumbnailWidthDelta()||e.galleryWidth),e}))}getGalleryWidth(){return this.getOrPutInCache("galleryWidth",(()=>{let e=Math.floor(this.container.width)+2*this.getDimensionFix();return this.options[l.Z.layoutParams.navigationArrows.position]===a.Z[l.Z.layoutParams.navigationArrows.position].OUTSIDE_GALLERY&&this.options[l.Z.layoutParams.structure.scrollDirection]===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&(e-=2*(this.options[l.Z.layoutParams.navigationArrows.size]+40+this.options[l.Z.layoutParams.structure.itemSpacing]/2)),e}))}getGalleryHeight(){return this.getOrPutInCache("galleryHeight",(()=>Math.floor((this.container.height>0?this.container.height:0)+(()=>this.options[l.Z.layoutParams.structure.scrollDirection]===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?this.getDimensionFix():0)())))}getDimensionFix(){return this.getOrPutInCache("dimensionFix",(()=>Number(this.options[l.Z.layoutParams.structure.itemSpacing]/2)-Number(this.options[l.Z.layoutParams.structure.gallerySpacing])))}getGalleryRatio(){return this.getOrPutInCache("galleryRatio",(()=>{const e=this.getGalleryDimensions();return e.galleryWidth/e.galleryHeight}))}getThumbnailSize(){return this.options[l.Z.layoutParams.thumbnails.size]+this.options[l.Z.layoutParams.structure.gallerySpacing]+this.options[l.Z.layoutParams.thumbnails.marginToGallery]}getThumbnailHeightDelta(){switch(this.options[l.Z.layoutParams.thumbnails.alignment]){case a.Z[l.Z.layoutParams.thumbnails.alignment].TOP:case a.Z[l.Z.layoutParams.thumbnails.alignment].BOTTOM:return this.getThumbnailSize();case a.Z[l.Z.layoutParams.thumbnails.alignment].RIGHT:case a.Z[l.Z.layoutParams.thumbnails.alignment].LEFT:return 0}}getThumbnailWidthDelta(){switch(this.options[l.Z.layoutParams.thumbnails.alignment]){case a.Z[l.Z.layoutParams.thumbnails.alignment].TOP:case a.Z[l.Z.layoutParams.thumbnails.alignment].BOTTOM:return 0;case a.Z[l.Z.layoutParams.thumbnails.alignment].RIGHT:case a.Z[l.Z.layoutParams.thumbnails.alignment].LEFT:return this.getThumbnailSize()}}fixHeightForHorizontalGalleryIfNeeded(){if(this.options[l.Z.layoutParams.structure.scrollDirection]===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&this.options[l.Z.layoutParams.structure.galleryRatio.value]>0)if(this.options[l.Z.layoutParams.thumbnails.enable]&&this.options[l.Z.layoutParams.thumbnails.position]===a.Z[l.Z.layoutParams.thumbnails.position].OUTSIDE_GALLERY)switch(this.options[l.Z.layoutParams.thumbnails.alignment]){case a.Z[l.Z.layoutParams.thumbnails.alignment].TOP:case a.Z[l.Z.layoutParams.thumbnails.alignment].BOTTOM:this.container.height=this.container.width*this.options[l.Z.layoutParams.structure.galleryRatio.value]+this.getThumbnailHeightDelta();break;case a.Z[l.Z.layoutParams.thumbnails.alignment].RIGHT:case a.Z[l.Z.layoutParams.thumbnails.alignment].LEFT:this.container.height=(this.container.width-this.getThumbnailWidthDelta())*this.options[l.Z.layoutParams.structure.galleryRatio.value]}else this.container.height=this.container.width*this.options[l.Z.layoutParams.structure.galleryRatio.value],!this.options[l.Z.layoutParams.structure.galleryRatio.includeExternalInfo]&&L(this.options)&&(this.container.height+=this.options.externalInfoHeight)}};var A=new class{createBlueprint({params:e,lastParams:t,existingBlueprint:i,blueprintManagerId:r,isUsingCustomInfoElements:o}){this.reasons={items:"",itemsAdded:"",options:"",container:""};let a={};try{const{container:r,items:n,options:l}=e,{container:u,items:c,options:h}=t,{formattedItems:m,changed:d}=this.formatItemsIfNeeded(n,c),{formattedOptions:p,changed:g}=this.formatOptionsIfNeeded(l,h,o),{formattedContainer:y,changed:_}=this.formatContainerIfNeeded(r,u,h,p||i.options,g),v=d||g||_;if(a={itemsChanged:d,optionsChanged:g,containerChanged:_},v||!i){i||(i={});const e=this.createStructure({formattedContainer:y||i.container,formattedItems:m||i.items,formattedOptions:p||i.options},v);p&&(i.options=p),m&&(i.items=m),y&&(i.container=y),i.structure=e;s.Z.isHeightSetByGallery(i.options)&&(i.container.height=i.container.galleryHeight=e.height)}}catch(e){console.error("Could not create blueprint, error:",e)}return{blueprint:i,changedParams:a,blueprintManagerId:r,reasons:Object.entries(this.reasons).reduce(((e,[t,i])=>[...e,`${t}: ${i}`]),[]).join(", ")}}formatItemsIfNeeded(e,t){const i=t;let r,o=!1;return((e,t)=>{if(e===t)return this.reasons.itemsAdded="items are the same object.",!1;if(!e)return this.reasons.itemsAdded="new items do not exist.",!1;if(!t||t&&0===t.length)return this.reasons.itemsAdded="old items do not exist.",!1;if(t.length>=e.length)return this.reasons.itemsAdded="more old items than new items.",!1;const i=t.reduce(((t,i,r)=>t&&i.id===e[r].itemId),!0);return i||(this.reasons.itemsAdded="items ids were changed. "),i})(e,i)?(r=i.concat(e.slice(i.length).map((e=>g.convertDtoToLayoutItem(e)))),this.gettingMoreItems=!1,o=!0):((e,t)=>e===t?(this.reasons.items="items are the same object.",!1):e?!t||t&&0===t.length?(this.reasons.items="old items do not exist.",!0):t.length!==e.length?(this.reasons.items="more new items than old items (or vice versa).",!0):e.some(((e,i)=>{const r=t[i];try{const t=!e||!r||e.itemId!==r.itemId||e.mediaUrl!==r.mediaUrl||e.measured!==r.measured||e.metaData&&r.metaData&&(e.metaData.type!==r.metaData.type||e.metaData.title!==r.metaData.title||e.metaData.description!==r.metaData.description)||e.metaData&&"text"===e.metaData.type&&r.metaData&&"text"===r.metaData.type&&(e.metaData.width!==r.metaData.width||e.metaData.height!==r.metaData.height||e.metaData.html!==r.metaData.html||e.metaData.textStyle!==r.metaData.textStyle||e.metaData.editorHtml!==r.metaData.editorHtml);return t&&(this.reasons.items=`items #${i} id was changed.`),t}catch(e){return this.reasons.items="an error occured",!0}}),!1):(this.reasons.items="new items do not exist.",!1))(e,i)&&(r=e.map((e=>Object.assign(g.convertDtoToLayoutItem(e)))),this.gettingMoreItems=!1,o=!0),{formattedItems:r,changed:o}}formatOptionsIfNeeded(e,t,i){let r,o=!1;if(((e,t)=>{if(!e)return this.reasons.options="no new options.",!1;if(!t)return this.reasons.options="no old options.",!0;try{const i={};Object.keys(t).sort().forEach((e=>i[e]=t[e]));const r={};Object.keys(e).sort().forEach((t=>r[t]=e[t]));const o=JSON.stringify(r)!==JSON.stringify(i);return o&&(this.reasons.options="options were changed."),o}catch(e){return console.error("Could not compare options",e),!1}})(e,t)){const t=function(e){const t=Object.assign({},b,e);return Object.keys(t).forEach((e=>{void 0===t[e]&&(t[e]=b[e])})),t}(e);r=(0,I.ZP)((0,S.V4)(t),i),o=!0}return{formattedOptions:r,changed:o}}formatContainerIfNeeded(e,t,i,r,o){let a=!1;let n;return(o||(({newContainerParams:e,oldContainerParams:t,oldOptions:i})=>{if(!i||!t)return this.reasons.container="no old container or options. ",!0;if(!e)return this.reasons.container="no new container.",!1;const o={height:!s.Z.isHeightSetByGallery(r)&&(!!e.height&&e.height!==t.height),width:!t||!!e.width&&e.width!==t.width};return Object.keys(o).reduce(((e,t)=>(o[t]&&(this.reasons.container+=`container.${t} has changed. `),e||o[t])),!1)})({newContainerParams:e,oldContainerParams:t,oldOptions:i}))&&(w.updateParams({options:r,container:e}),a=!0,n=Object.assign({},e,w.getGalleryDimensions())),{formattedContainer:n,changed:a}}createStructure({formattedContainer:e,formattedOptions:t,formattedItems:i}){const r={items:i,container:e,styleParams:t,options:{showAllItems:!0,skipVisibilitiesCalc:!0,useLayoutStore:!1}};return r.options.createLayoutOnInit=!1,this.layouter=new P(r),this.layouter.createLayout(r)}},Z=i(77089);class x{constructor({id:e}){this.id=e+"'s blueprintsManager",this.currentState={},this.existingBlueprint={},this.lastBlueprintId=0,this.cache={},this.api={},this.currentState.totalItemsCount=1/0,this.onBlueprintReady=()=>{},this.loopingItems=!1}init(e){this.api=e.api,this.currentState.totalItemsCount=e&&e.totalItemsCount||this.currentState.totalItemsCount,Z.Ce.setDeviceType(e.deviceType)}setCurrentBlueprint(e){this.lastBlueprintId=e}async createBlueprint(e={}){const t=Math.floor(1e3*Math.random());this.currentState.totalItemsCount=e.totalItemsCount||this.api.getTotalItemsCount&&this.api.getTotalItemsCount()||this.currentState.totalItemsCount,this.currentState.isUsingCustomInfoElements=e.isUsingCustomInfoElements||this.api.isUsingCustomInfoElements&&this.api.isUsingCustomInfoElements()||this.currentState.isUsingCustomInfoElements,e=Object.assign(Object.assign({},e),await this.completeParams(e)),e=this.duplicateItemsForSlideshowLoopIfNeeded(e);const{blueprintManagerId:i,blueprint:r,changedParams:o,reasons:a}=await(async e=>(this.setCurrentBlueprint(e.blueprintManagerId),this.api.createBlueprintImp?await this.api.createBlueprintImp(e):await A.createBlueprint(e)))({params:e,lastParams:this.currentState,existingBlueprint:this.existingBlueprint,blueprintManagerId:this.id+t,isUsingCustomInfoElements:this.currentState.isUsingCustomInfoElements});if(i!==this.lastBlueprintId)return;const s=Object.values(o).some((e=>!!e)),n=Object.keys(r).length>0;return this.updateLastParamsIfNeeded(e,o,n),await new Promise((e=>setTimeout(e,0))),n&&this.api.onBlueprintReady&&this.api.onBlueprintReady({blueprint:r,blueprintChanged:s,reasons:a}),this.cache[e]=this.existingBlueprint=r}async getMoreItems(e){let t;e!!e)),a=Object.keys(t).length>0;return this.updateLastParamsIfNeeded(e,i,a),a&&this.api.onBlueprintReady&&this.api.onBlueprintReady({blueprint:t,blueprintChanged:o,reasons:r,initialBlueprint:!0}),a&&(this.cache[e]=this.existingBlueprint=t)}createSingleBlueprint(e={}){let{isUsingCustomInfoElements:t}=e;const{blueprint:i}=A.createBlueprint({params:e,lastParams:{},existingBlueprint:{},blueprintManagerId:this.id+"_singleBlueprint",isUsingCustomInfoElements:t});return i}duplicateGalleryItems({items:e,duplicateFactor:t=1}){const i=(e=e||this.currentState.items).slice(0,this.currentState.totalItemsCount);for(let r=0;r{let t=!0;return e&&Object.keys(e).length>0&&(t=!1),t})(e)&&(e=this.api.fetchContainer&&await this.api.fetchContainer()||this.currentState.container),e}async fetchItemsIfNeeded(e){return(e=>{let t=!0;return e&&e.length>0&&(t=!1),t})(e)&&(e=!this.loopingItems&&this.api.fetchItems&&await this.api.fetchItems()||this.currentState.items),e}async fetchOptionsIfNeeded(e){return(e=>{let t=!0;return e&&Object.keys(e).length>0&&(t=!1),t})(e)&&(e=this.api.fetchOptions&&await this.api.fetchOptions()||this.currentState.options),e}updateLastParamsIfNeeded({items:e,container:t,options:i},r,o){o&&(this.currentState.items=r.itemsChanged?e:this.currentState.items,this.currentState.container=r.containerChanged?Object.assign({},t):this.currentState.container,this.currentState.options=r.optionsChanged?Object.assign({},i):this.currentState.options)}needMoreItems(e){this.getMoreItems(e)}}var C=i(32324);class N extends o.Component{render(){if("true"!==s.Z.getTopUrlParam("pgdebug"))return!1;const e=o.createElement("div",{className:"version-header "},"Pro Gallery Version #",C.Z.staticsVersion);let t="";try{t=" psw"+C.Z.top.screen.width+" piw"+C.Z.top.innerWidth+" pbw"+C.Z.top.document.body.clientWidth}catch(e){}const i=o.createElement("div",{className:"version-header "},s.Z.isLandscape()?"land":"port"," sw",C.Z.screen.width,"sh",C.Z.screen.height," iw",C.Z.innerWidth," bw",C.Z.document.body.clientWidth," sr","1","rc",this.props.resizeCount," oc",this.props.orientationCount," nh",this.props.newHeight," lh",this.props.lastHeight,t,"www",this.props.maxGalleryWidth);return o.createElement("div",null,e,i)}}var R=N,D=i(64762);class M extends o.Component{constructor(e){super(e),this.imageRef=null}componentDidMount(){var e;(null===(e=this.imageRef)||void 0===e?void 0:e.complete)&&"function"==typeof this.props.onLoad&&this.props.onLoad()}render(){const e=this.props,{customImageRenderer:t}=e,i=(0,r.__rest)(e,["customImageRenderer"]);return"function"==typeof t?t(this.props):"string"==typeof this.props.src?o.createElement("img",Object.assign({ref:e=>{this.imageRef=e},alt:this.props.alt},i)):"object"==typeof this.props.src?o.createElement("picture",{id:`multi_picture_${this.props.id}`,key:`multi_picture_${this.props.id}`},this.props.src.map(((e,t)=>e.forPrinting?o.createElement(D.k,{key:`print-only-image-${t}`,srcSet:e.dpr,type:`image/${e.type}`}):o.createElement("source",{key:`image-source-${t}`,srcSet:e.dpr||e.url,type:`image/${e.type}`}))),o.createElement("img",Object.assign({ref:e=>{this.imageRef=e},alt:this.props.alt},i,{src:this.props.src[this.props.src.length-1].url}))):null}}var G=M;class k extends o.Component{constructor(e){super(e),this.getImageContainer=this.getImageContainer.bind(this),this.getImageContainerClassNames=this.getImageContainerClassNames.bind(this),this.state={isHighResImageLoaded:!1},this.handleHighResImageLoad=this.handleHighResImageLoad.bind(this)}componentDidMount(){try{"function"==typeof this.props.actions.setItemLoaded&&this.props.actions.setItemLoaded()}catch(e){console.error(e)}}handleHighResImageLoad(){this.setState({isHighResImageLoaded:!0});try{this.props.actions.setItemLoaded()}catch(e){console.error("Failed to load high res image",e)}}getImageContainerClassNames(){const{isCurrentHover:e,options:t}=this.props,{isHighResImageLoaded:i}=this.state;return["gallery-item-content",e?"item-content-hover":"item-content-regular","image-item","gallery-item-visible","gallery-item","gallery-item-preloaded",t[l.Z.layoutParams.crop.enable]&&t[l.Z.layoutParams.crop.method]===a.Z[l.Z.layoutParams.crop.method].FIT?"grid-fit":"",t[l.Z.behaviourParams.item.content.loader]===a.Z[l.Z.behaviourParams.item.content.loader].COLOR?"load-with-color "+(i?"image-loaded":""):""].join(" ")}getImageContainer(e,t,i){const{imageDimensions:r,id:a,actions:s}=this.props;return o.createElement("div",{className:t,onTouchStart:s.handleItemMouseDown,onTouchEnd:s.handleItemMouseUp,key:"image_container-"+a,"data-hook":"image-item",style:r},e(),i)}getImageAnimationOverlay(){const{imageDimensions:e,options:t,createUrl:i,id:r}=this.props;let s=null;switch(t[l.Z.behaviourParams.gallery.scrollAnimation]){case a.Z[l.Z.behaviourParams.gallery.scrollAnimation].BLUR:s=i(a.Z.urlSizes.RESIZED,a.Z.urlTypes.LOW_RES);break;case a.Z[l.Z.behaviourParams.gallery.scrollAnimation].MAIN_COLOR:s=i(a.Z.urlSizes.PIXEL,a.Z.urlTypes.HIGH_RES)}return s&&o.createElement("div",{key:"image_container-overlay-"+r,"data-hook":"image-item-overlay",style:Object.assign(Object.assign({},e),{backgroundImage:`url(${s})`,backgroundSize:"cover",pointerEvents:"none",position:"absolute",top:0,left:0})})}getImageElement(){const{alt:e,imageDimensions:t,createUrl:i,id:n,idx:u,settings:c={},options:h}=this.props,{isHighResImageLoaded:m}=this.state,d=c&&c.imageProps&&"function"==typeof c.imageProps?c.imageProps(n):{},{marginLeft:p,marginTop:g}=t,y=(0,r.__rest)(t,["marginLeft","marginTop"]);return()=>{var t,r,c;const p=[],g="string"==typeof e?e:"untitled image",_=s.Z.isMobile()&&this.props.options[l.Z.behaviourParams.gallery.blockContextMenu]?{WebkitUserSelect:"none",WebkitTouchCallout:"none"}:{},v=this.props.isPrerenderMode?{width:"100%",height:"100%"}:{};if(!m){let e=null;const s=Object.assign({className:"gallery-item-visible gallery-item gallery-item-preloaded",key:"gallery-item-image-img-preload","data-hook":"gallery-item-image-img-preload",loading:"eager"},d);switch(h[l.Z.behaviourParams.item.content.loader]){case a.Z[l.Z.behaviourParams.item.content.loader].BLUR:e=o.createElement(G,Object.assign({alt:g,key:"image_preload_blur-"+n,src:i(a.Z.urlSizes.RESIZED,a.Z.urlTypes.LOW_RES),style:Object.assign(Object.assign(Object.assign({},y),v),_)},s,{customImageRenderer:null===(t=this.props.customComponents)||void 0===t?void 0:t.customImageRenderer}));break;case a.Z[l.Z.behaviourParams.item.content.loader].MAIN_COLOR:e=o.createElement(G,Object.assign({alt:g,key:"image_preload_main_color-"+n,src:i(a.Z.urlSizes.PIXEL,a.Z.urlTypes.HIGH_RES),style:Object.assign(Object.assign(Object.assign({},y),v),_)},s,{customImageRenderer:null===(r=this.props.customComponents)||void 0===r?void 0:r.customImageRenderer}))}p.push(e)}const f=!this.props.isPrerenderMode,P=h[l.Z.stylingParams.itemResolutionMode]===a.Z[l.Z.stylingParams.itemResolutionMode].FULL?a.Z.urlSizes.FULL:a.Z.urlSizes.MULTI,b=i(P,a.Z.urlTypes.HIGH_RES),I=o.createElement(G,Object.assign({key:"image_highres-"+n,className:"gallery-item-visible gallery-item gallery-item-preloaded","data-hook":"gallery-item-image-img","data-idx":u,src:b,alt:g,onLoad:this.handleHighResImageLoad,loading:this.props.isPrerenderMode?"lazy":"eager",style:Object.assign(Object.assign(Object.assign({},y),_),!f&&v)},d,{customImageRenderer:null===(c=this.props.customComponents)||void 0===c?void 0:c.customImageRenderer}));return p.push(I),p}}render(){const e=this.getImageElement(),t=`${this.getImageContainerClassNames()} ${this.props.extraClasses||""}`,i=this.props.overlay||this.getImageAnimationOverlay();return this.getImageContainer(e,t,i)}}var H=k;var B=function(e){return class extends o.Component{constructor(e){super(e),this.onMouseMove=this.onMouseMove.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.isMagnifiedBiggerThanContainer=this.isMagnifiedBiggerThanContainer.bind(this),this.toggleMagnify=this.toggleMagnify.bind(this),this.getMagnifyInitialPos=this.getMagnifyInitialPos.bind(this),this.getBoundrys=this.getBoundrys.bind(this),this.getMagnifiedDimensions=this.getMagnifiedDimensions.bind(this),this.containerRef=null,this.state={shouldMagnify:!1,x:0,y:0}}onDragStart(e){e.preventDefault()}onMouseMove(e){if(this.dragStarted){const{magnifiedWidth:t,magnifiedHeight:i}=this.getMagnifiedDimensions();this.isDragging=!0;const{cubedWidth:r,cubedHeight:o}=this.props.style,{clientY:a,clientX:s}=e,{boundryY:n,boundryX:l}=this.getBoundrys();this.setState({x:Math.max(-l,Math.min(this.dragStartX-s,t-r)),y:Math.max(-n,Math.min(this.dragStartY-a,i-o))})}}onMouseDown(e){const{clientX:t,clientY:i}=e,{x:r,y:o,shouldMagnify:a}=this.state;a?(this.dragStartX=r+t,this.dragStartY=o+i,this.dragStarted=!0):this.setState(this.getMagnifyInitialPos(e))}onMouseUp(){this.isDragging||this.toggleMagnify(),this.dragStarted=!1,this.isDragging=!1}toggleMagnify(e){const{shouldMagnify:t}=this.state;"boolean"==typeof e?this.setState({shouldMagnify:e}):this.setState({shouldMagnify:!t})}getMagnifiedDimensions(){const{style:{innerHeight:e,innerWidth:t}}=this.props,i=this.props.options[l.Z.behaviourParams.item.content.magnificationValue];return{magnifiedHeight:e*i,magnifiedWidth:t*i}}getPreloadImage(){var e;const{createUrl:t,id:i,style:r,imageDimensions:s,options:n}=this.props,{innerWidth:u,innerHeight:c}=r,{marginTop:h,marginLeft:m}=s,{shouldMagnify:d,x:p,y:g}=this.state,y=n[l.Z.behaviourParams.item.content.magnificationValue],_=t(a.Z.urlSizes.RESIZED,a.Z.urlTypes.HIGH_RES),v=d?y:1;return o.createElement(G,{alt:"",key:"magnified-item-preload-"+i,className:"magnified-item-preload",src:_,style:{width:u,height:c,position:"relative",zIndex:1,opacity:d?1:0,transform:`scale(${v})`,transformOrigin:`${(p+m)/(y-1)}px ${(g+h)/(y-1)}px`,transition:"transform 0.3s ease"+(d?"":", opacity 0.1s ease 0.3s")},customImageRenderer:null===(e=this.props.customComponents)||void 0===e?void 0:e.customImageRenderer})}getHighResImage(){var e;const{createMagnifiedUrl:t,id:i,alt:r,options:a,isPrerenderMode:s}=this.props,{magnifiedWidth:n,magnifiedHeight:u}=this.getMagnifiedDimensions(),c=t(a[l.Z.behaviourParams.item.content.magnificationValue]);return o.createElement(G,{key:`magnified-item-${i}`,className:"magnified-item","data-hook":"magnified-item",src:c,alt:"string"==typeof r?r:"untitled image",id:i,isPrerenderMode:s,style:{width:n,height:u,position:"absolute"},customImageRenderer:null===(e=this.props.customComponents)||void 0===e?void 0:e.customImageRenderer})}isMagnifiedBiggerThanContainer(e){const{magnifiedWidth:t,magnifiedHeight:i}=this.getMagnifiedDimensions(),{cubedWidth:r,cubedHeight:o}=e;return rthis.containerRef=e,className:"magnified-item-container",style:this.getContainerStyle(),onDragStart:this.onDragStart,onMouseMove:this.onMouseMove,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp},o.createElement(e,Object.assign({},this.props)),this.getPreloadImage(),o.createElement("div",{className:"magnified-images",style:this.getMagnifiedImageStyle()},t&&this.getHighResImage()))}}},F=B(H),z=i(47019);var U=({url:e,dimensions:t})=>{const i=e,r={"data-hook":"video-iframe-placeholder",className:"gallery-item-content video-iframe-placeholder",title:"pro-gallery-video",style:t,allow:"fullscreen",allowFullScreen:!0,loading:"lazy"};return(null==e?void 0:e.includes("youtube.com"))||(null==e?void 0:e.includes("youtu.be"))||(null==e?void 0:e.includes("vimeo.com"))?o.createElement("iframe",Object.assign({},r,{src:e+"&autoplay=0&muted=1"})):o.createElement("iframe",Object.assign({},r,{src:i,srcDoc:`\n \n `}))};function W(e){const{hasLink:t,options:i,imageDimensions:r,showPlayButton:n,MediaImplementation:u,enableImagePlaceholder:c,isVideoPlaceholder:h,videoPlaceholderUrl:m}=e,{behaviourParams_item_clickAction:d,behaviourParams_item_video_playTrigger:p}=i,[g,y]=(0,o.useState)(!1);(0,o.useEffect)((()=>{y(!0)}),[]);const _=(0,o.useMemo)((()=>!s.Z.isSSR()&&(p===a.Z[l.Z.behaviourParams.item.video.playTrigger].HOVER||p===a.Z[l.Z.behaviourParams.item.video.playTrigger].AUTO||(d===a.Z[l.Z.behaviourParams.item.clickAction].NOTHING||d===a.Z[l.Z.behaviourParams.item.clickAction].MAGNIFY||d===a.Z[l.Z.behaviourParams.item.clickAction].LINK&&!t))),[t,p,d]),v=(t={})=>{return c?o.createElement(H,Object.assign({},e,{imageDimensions:r,id:e.idx,overlay:n&&!_&&(i=e.type,"video"===i?o.createElement(z.U,{type:"videoPlayButton",size:60}):"3d"===i?o.createElement(z.U,{type:"rotateArrow",size:60}):o.createElement(o.Fragment,null)),extraClasses:e.placeholderExtraClasses.join(" ")},t)):o.createElement(o.Fragment,null);var i},f=v(),P=o.createElement(U,{dimensions:r,url:h?m:e.videoUrl}),b=o.createElement(o.Fragment,null,f,P,e.hover);return _&&!e.isPrerenderMode&&g?(0,Z.wh)()?o.createElement(o.Fragment,null,f,e.hover):o.createElement(o.Suspense,{fallback:b},o.createElement(u,Object.assign({},e,{thumbnail:f,placeholder:b,thumbnailWithOverride:v}))):b}const j=o.lazy((()=>i.e(65381).then(i.bind(i,14747))));function V(e){const{options:t}=e,i=t[l.Z.behaviourParams.item.threeDimensionalScene.playTrigger],r=t[l.Z.behaviourParams.item.threeDimensionalScene.enablePlayButton];return o.createElement(W,Object.assign({},e,{MediaImplementation:j,playTrigger:i,placeholderExtraClasses:["gallery-item-3d-placeholder"],enableImagePlaceholder:!0,showPlayButton:r}))}var $=e=>t=>{const{itemWasHovered:i,isCurrentHover:r,hasSecondaryMedia:s,secondaryMediaItem:n}=t;if(t.options[l.Z.behaviourParams.item.secondaryMedia.trigger]===a.Z[l.Z.behaviourParams.item.secondaryMedia.trigger].OFF||!s)return o.createElement(e,Object.assign({},t));return o.createElement("div",{className:"item-with-secondary-media-container"},o.createElement(e,Object.assign({},t)),o.createElement("div",{className:["secondary-media-item",r?"show":"hide"].join(" ")},i&&o.createElement(e,Object.assign({},(()=>{const{createUrl:e,createMagnifiedUrl:i,style:r,html:o}=n;return Object.assign(Object.assign({},t),{style:r,html:o,createUrl:e,createMagnifiedUrl:i})})()))))};class Y extends o.Component{constructor(e){super(e),"function"==typeof this.props.actions.setItemLoaded&&this.props.actions.setItemLoaded()}getTextDimensions(){const{style:e,options:t,cropRatio:i,imageDimensions:r}=this.props,o=e.ratio[1/0,1/0],this.inScreenPadding=()=>[0,0],this.aboveScreenPadding=()=>[0,1/0],this.justBelowScreenPadding=e=>[1/0,-1*(e+this.screenSize)],this.justBelowAndAboveScreenPadding=()=>[2560,1/0],this.justBelowAndInScreenPadding=()=>[5120,0],this.belowScreenPadding=()=>[1/0,0],this.highResPadding=()=>[5120,1/0],this.lowResPadding=()=>[10240,1/0]}getSellectorDomId({id:e,idx:t}){return`pgi${String(e).replace(/[\W]+/g,"")}_${t}`}buildScrollClassName(e,t,i){const r=String(e).replace(/[\W]+/g,"").slice(-8);return`${this.pgScrollClassName}_${r}_${i}-${this.pgScrollSteps[t]+Number(i)}`}calcScrollClasses(e,t){return`${this.pgScrollClassName}-${t} `+this.pgScrollSteps.map(((i,r)=>this.buildScrollClassName(e,r,Math.floor(t/i)*i))).join(" ")}calcScrollCss({id:e,items:t,options:i,container:r}){if(s.Z.isVerbose()&&console.time("CSS Scroll"),!t||!t.length)return[];if(i[l.Z.behaviourParams.gallery.scrollAnimation]===a.Z[l.Z.behaviourParams.gallery.scrollAnimation].NO_EFFECT)return[];this.screenSize=i[l.Z.layoutParams.structure.scrollDirection]===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?Math.min(C.Z.outerWidth,C.Z.screen.width,r.galleryWidth):Math.min(C.Z.outerHeight,C.Z.screen.height),i[l.Z.layoutParams.structure.scrollDirection]===a.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL&&s.Z.isMobile()&&(this.screenSize+=50),this.calcScrollPaddings();const[o]=t.slice(-1),{top:n,right:u}=o.offset,c=this.pgScrollSteps[0];this.minHeight=0-c,this.maxHeight=(Math.ceil(((i[l.Z.layoutParams.structure.scrollDirection]===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?u:n)+this.screenSize)/c)+1)*c;const h=t.map((t=>this.calcScrollCssForItem({id:e,item:t,options:i})));return s.Z.isVerbose()&&console.timeEnd("CSS Scroll"),h}shouldCalcScrollCss({type:e}){return"video"!==e&&"text"!==e&&"3d"!==e}createScrollSelectorsFunction({id:e,item:t,options:i}){const r=i[l.Z.layoutParams.structure.scrollDirection]===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?t.offset.left-this.screenSize:t.offset.top-this.screenSize,o=i[l.Z.layoutParams.structure.scrollDirection]===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?t.offset.left+t.width:t.offset.top+t.height,s=this.pgScrollSteps[this.pgScrollSteps.length-1],n=(e,t)=>Math.ceil(Math.min(this.maxHeight,e)/t)*t,u=(e,t)=>Math.floor(Math.max(this.minHeight,e)/t)*t,c=this.getSellectorDomId(t);return(t,i)=>{const[a,l]=t;if(a===1/0&&l===1/0)return`#pro-gallery-${e} #${c} ${i}`;let h=u(r-a,s);const m=n(o+l,s),d=[];for(;hh%e==0&&h+e<=m));if(-1===r){console.error("largestDividerIdx is -1. Couldn't find index in pgScrollSteps array.\nfrom =",h,"\nto =",m,"\npadding[0] =",t[0],"\npadding[1] =",t[1]);break}d.push(`.${this.buildScrollClassName(e,r,h)} ~ div #${c} ${i}`),h+=this.pgScrollSteps[r]}return d.join(", ")}}calcScrollCssForItem({id:e,item:t,options:i}){const{idx:r}=t;let o="";const a=this.createScrollSelectorsFunction({id:e,item:t,options:i});return o+=this.createScrollAnimationsIfNeeded({idx:r,item:t,options:i,createScrollSelectors:a}),this.scrollCss[r]=o||this.scrollCss[r],this.scrollCss[r]}createScrollAnimationsIfNeeded({idx:e,options:t,createScrollSelectors:i}){const r=t[l.Z.behaviourParams.gallery.scrollAnimation],{NO_EFFECT:o,FADE_IN:s,GRAYSCALE:n,SLIDE_UP:u,EXPAND:c,SHRINK:h,ZOOM_OUT:m,ONE_COLOR:d,MAIN_COLOR:p,BLUR:g}=a.Z[l.Z.behaviourParams.gallery.scrollAnimation],y=t[l.Z.behaviourParams.gallery.layoutDirection]===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,_=t[l.Z.layoutParams.structure.scrollDirection];if(r===o)return"";const v=100*(e%3+1),f=100*(e%3+1),P=this.allPagePadding(),b=this.aboveScreenPadding();let I="";if(r!==p&&r!==g||(I+=i(P,' [data-hook="image-item-overlay"]')+`{filter: opacity(1); transition: filter 1.${f}s ease-in ${v}ms !important;}`,I+=i(b,' [data-hook="image-item-overlay"]')+"{filter: opacity(0) !important;}"),r===s&&(I+=i(P,"")+`{filter: opacity(0); transition: filter 1.${f}s ease-in !important;}`,I+=i(b,"")+"{filter: opacity(1) !important;}"),r===n&&(I+=i(P," .gallery-item-wrapper")+`{filter: grayscale(100%); transition: filter 1.${200+f}s ease-in !important;}`,I+=i(b," .gallery-item-wrapper")+"{filter: grayscale(0) !important;}"),r===u){const e=_===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?"X":"Y",t=y?"-":"";I+=i(P,"")+`{transform: translate${e}(${t}100px); transition: transform 0.8s cubic-bezier(.13,.78,.53,.92) !important;}`,I+=i(b,"")+`{transform: translate${e}(0) !important;}`}if(r===c&&(I+=i(P,"")+`{transform: scale(0.95); transition: transform 1s cubic-bezier(.13,.78,.53,.92) ${v}ms !important;}`,I+=i(b,"")+"{transform: scale(1) !important;}"),r===h&&(I+=i(P,"")+`{transform: scale(1.05); transition: transform 1s cubic-bezier(.13,.78,.53,.92) ${v}ms !important;}`,I+=i(b,"")+"{transform: scale(1) !important;}"),r===m&&(I+=i(P," .gallery-item-wrapper")+`{transform: scale(1.1); transition: transform 1.2s cubic-bezier(.13,.78,.53,.92) ${v}ms !important;}`,I+=i(b," .gallery-item-wrapper")+"{transform: scale(1) !important;}"),r===d){const e=t.oneColorAnimationColor&&t.oneColorAnimationColor.value?t.oneColorAnimationColor.value:"transparent";I+=i(P,"")+`{background-color: ${e};}`,I+=i(P," .gallery-item-wrapper")+`{filter: opacity(0); transition: filter 0.${600+f}s ease-in !important;}`,I+=i(b," .gallery-item-wrapper")+"{filter: opacity(1) !important;}"}return I}};function J(e){return Object.assign({},(e[l.Z.layoutParams.info.layout]===a.Z[l.Z.layoutParams.info.layout].ATTACHED_BACKGROUND||a.Z.hasHoverPlacement(e[l.Z.layoutParams.info.placement]))&&Object.assign(Object.assign({},ee(e[l.Z.stylingParams.itemBorderRadius],e[l.Z.stylingParams.itemBorderWidth],e[l.Z.stylingParams.itemBorderColor])),function(e){let t={};if(e[l.Z.stylingParams.itemEnableShadow]){const i=e[l.Z.stylingParams.itemShadowBlur],r=e[l.Z.stylingParams.itemShadowDirection],o=e[l.Z.stylingParams.itemShadowSize],a=-1*(Number(r)-90)/360*2*Math.PI;t={boxShadow:`${Math.round(o*Math.cos(a))}px ${Math.round(-1*o*Math.sin(a))}px ${i}px ${s.Z.formatColor(e[l.Z.stylingParams.itemShadowOpacityAndColor])}`}}return t}(e)))}function Q(e){return Object.assign({},!a.Z.hasHoverPlacement(e[l.Z.layoutParams.info.placement])&&(e[l.Z.layoutParams.info.layout]===a.Z[l.Z.layoutParams.info.layout].NO_BACKGROUND||e[l.Z.layoutParams.info.layout]===a.Z[l.Z.layoutParams.info.layout].SEPARATED_BACKGROUND)&&Object.assign({},ee(e[l.Z.stylingParams.itemBorderRadius],e[l.Z.stylingParams.itemBorderWidth],e[l.Z.stylingParams.itemBorderColor])))}function ee(e,t,i){return Object.assign(Object.assign({overflow:"hidden"},e>0&&{borderRadius:e}),t>0&&{borderWidth:t+"px",borderColor:s.Z.formatColor(i),borderStyle:"solid"})}function te(e,t,i,r){const o=Object.assign(Object.assign({},a.Z.hasExternalHorizontalPlacement(e)&&{height:i,float:a.Z.isExternalRightPlacement(e)?"right":"left"}),a.Z.hasExternalVerticalPlacement(e)&&{height:r,boxSizing:"content-box"});return t[l.Z.layoutParams.info.layout]===a.Z[l.Z.layoutParams.info.layout].SEPARATED_BACKGROUND?Object.assign(Object.assign(Object.assign(Object.assign({},o),ee(t[l.Z.layoutParams.info.border.radius],t[l.Z.layoutParams.info.border.width],t[l.Z.layoutParams.info.border.color])),a.Z.hasExternalAbovePlacement(e)&&{marginBottom:t[l.Z.layoutParams.info.spacing]}),a.Z.hasExternalBelowPlacement(e)&&{marginTop:t[l.Z.layoutParams.info.spacing]}):o}function ie(e,t,i,r){const o=Object.assign(Object.assign({},(t[l.Z.layoutParams.info.layout]===a.Z[l.Z.layoutParams.info.layout].SEPARATED_BACKGROUND||t[l.Z.layoutParams.info.layout]===a.Z[l.Z.layoutParams.info.layout].ATTACHED_BACKGROUND)&&t.textBoxFillColor&&t.textBoxFillColor.value&&{backgroundColor:t.textBoxFillColor.value}),{overflow:"hidden",boxSizing:"border-box"}),s=a.Z.hasExternalVerticalPlacement(e),n=a.Z.hasExternalHorizontalPlacement(e);return Object.assign(Object.assign(Object.assign({},o),s&&function(e,t){return{width:"100%",height:t}}(0,i)),n&&function(e,t){return{height:"100%",width:t}}(0,r))}const re=s.Z.isiOS(),oe=o.lazy((()=>i.e(86158).then(i.bind(i,9754))));class ae extends o.Component{render(){const e=(((t=this.props).videoUrl||t.url).includes("youtube.com")||(t.videoUrl||t.url).includes("youtu.be"))&&re;var t;return o.createElement(oe,Object.assign({},this.props,{loadVideo:this.props.shouldPlay||e,videoPlaceholder:this.props.thumbnail,videoPlayButton:this.props.showPlayButton&&o.createElement(z.U,{type:"videoPlayButton",size:60})}))}}class se extends o.Component{render(){const e=this.props.options[l.Z.behaviourParams.item.video.enablePlayButton];return o.createElement(W,Object.assign({},this.props,{MediaImplementation:ae,enableImagePlaceholder:(0,X.WT)(this.props.options),showPlayButton:e,placeholderExtraClasses:["video-item","gallery-item-video"]}))}}var ne=se;function le(e){return Object.assign(Object.assign({},e),{isMobile:s.Z.isMobile()})}const ue=({idx:e,activeIndex:t,options:i},r=!1)=>{const{[l.Z.behaviourParams.gallery.horizontal.slideAnimation]:o}=i,s=i[l.Z.behaviourParams.gallery.layoutDirection]===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT;switch(o){case a.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].FADE:return"fade fade-"+(t===e?"visible":"hidden");case a.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].DECK:return te?"deck-before"+(s?"-rtl":""):{};default:return{}}},ce=$(F),he=$(Y);class me extends o.Component{constructor(e){super(e),this.itemContainer=o.createRef(),this.shouldUseDirectLink=()=>{const{directLink:e}=this.props,{url:t,target:i}=e||{},r=!(!t||!i||this.props.options[l.Z.behaviourParams.item.clickAction]!==a.Z[l.Z.behaviourParams.item.clickAction].LINK);return this.shouldShowHoverOnMobile()&&this.isClickOnCurrentHoveredItem()&&r?(this.props.actions.eventsListener(a.Z.events.HOVER_SET,-1),!0):!(!r||this.shouldShowHoverOnMobile())},this.isClickOnCurrentHoveredItem=()=>this.state.isCurrentHover||this.props.options[l.Z.behaviourParams.item.overlay.hoveringBehaviour]===a.Z[l.Z.behaviourParams.item.overlay.hoveringBehaviour].ALWAYS_SHOW,this.props.actions.eventsListener(a.Z.events.ITEM_CREATED,this.props),this.init(),this.state={isCurrentHover:!1,itemWasHovered:!1},this.activeElement=""}init(){this.onItemClick=this.onItemClick.bind(this),this.onItemWrapperClick=this.onItemWrapperClick.bind(this),this.onItemInfoClick=this.onItemInfoClick.bind(this),this.onAnchorKeyDown=this.onAnchorKeyDown.bind(this),this.onContainerKeyUp=this.onContainerKeyUp.bind(this),this.handleItemMouseDown=this.handleItemMouseDown.bind(this),this.handleItemMouseUp=this.handleItemMouseUp.bind(this),this.setItemLoaded=this.setItemLoaded.bind(this),this.isHighlight=this.isHighlight.bind(this),this.getItemHover=this.getItemHover.bind(this),this.getImageItem=this.getImageItem.bind(this),this.getVideoItem=this.getVideoItem.bind(this),this.getTextItem=this.getTextItem.bind(this),this.getItemInner=this.getItemInner.bind(this),this.getItemContainerStyles=this.getItemContainerStyles.bind(this),this.getItemWrapperStyles=this.getItemWrapperStyles.bind(this),this.getItemAriaLabel=this.getItemAriaLabel.bind(this),this.getItemContainerClass=this.getItemContainerClass.bind(this),this.getItemWrapperClass=this.getItemWrapperClass.bind(this),this.getItemContainerTabIndex=this.getItemContainerTabIndex.bind(this),this.isIconTag=this.isIconTag.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.checkIfCurrentHoverChanged=this.checkIfCurrentHoverChanged.bind(this),this.shouldHoverWithoutOverlayAndClickOnMobile=this.shouldHoverWithoutOverlayAndClickOnMobile.bind(this)}setItemLoaded(){this.props.actions.eventsListener(a.Z.events.ITEM_LOADED,this.props),this.setState({loaded:!0})}isIconTag(e){return["button","i","a","svg","path"].indexOf(e.toLowerCase())>=0}onMouseEnter(){s.Z.isMobile()||this.props.actions.eventsListener(a.Z.events.HOVER_SET,this.props.idx)}onMouseLeave(){s.Z.isMobile()||this.props.actions.eventsListener(a.Z.events.HOVER_SET,-1)}onFocus(){var e;(null===(e=this.props.settings)||void 0===e?void 0:e.isAccessible)&&this.props.actions.eventsListener(a.Z.events.HOVER_SET,this.props.idx),this.props.actions.eventsListener(a.Z.events.ITEM_FOCUSED,this.props)}onBlur(){var e;(null===(e=this.props.settings)||void 0===e?void 0:e.isAccessible)&&this.props.actions.eventsListener(a.Z.events.HOVER_SET,-1),this.props.actions.eventsListener(a.Z.events.ITEM_LOST_FOCUS,this.props)}onAnchorKeyDown(e){switch(e.keyCode||e.charCode){case 32:case 13:return e.stopPropagation(),this.onItemClick(e,"item-container",!1),!1;default:return!0}}handleGalleryItemAction(e){this.props.actions.eventsListener(a.Z.events.ITEM_ACTION_TRIGGERED,this.props,e)}onItemWrapperClick(e){this.onItemClick(e,"item-media")}onItemInfoClick(e){this.onItemClick(e,"item-info",!1),this.shouldUseDirectLink()||e.stopPropagation()}onItemClick(e,t,i=!0){this.props.actions.eventsListener(a.Z.events.ITEM_CLICKED,Object.assign(Object.assign({},this.props),{clickTarget:t}),e),this.shouldUseDirectLink()||(i&&e.preventDefault(),this.shouldShowHoverOnMobile()||this.shouldShowSecondMediaOnMobile()?this.handleHoverClickOnMobile(e):this.shouldHoverWithoutOverlayAndClickOnMobile()?this.props.actions.eventsListener(a.Z.events.HOVER_SET,this.props.idx):this.handleGalleryItemAction(e))}handleHoverClickOnMobile(e){this.isClickOnCurrentHoveredItem()?(this.handleGalleryItemAction(e),this.props.actions.eventsListener(a.Z.events.HOVER_SET,-1)):this.props.actions.eventsListener(a.Z.events.HOVER_SET,this.props.idx)}handleItemMouseDown(){return!0}handleItemMouseUp(){return s.Z.isMobile()&&this.longPressTimer&&clearTimeout(this.longPressTimer),!0}shouldShowHoverOnMobile(){if(s.Z.isMobile()){const{[l.Z.behaviourParams.item.overlay.hoveringBehaviour]:e,alwaysShowHover:t,previewHover:i}=this.props.options;if(e===a.Z[l.Z.behaviourParams.item.overlay.hoveringBehaviour].NEVER_SHOW)return!1;if(this.props.options[l.Z.behaviourParams.item.clickAction]===a.Z[l.Z.behaviourParams.item.clickAction].NOTHING&&"video"!==this.props.type&&"3d"!==this.props.type)return!0;if(this.props.customComponents.customHoverRenderer&&a.Z.hasHoverPlacement(this.props.options[l.Z.layoutParams.info.placement])&&e!==a.Z[l.Z.behaviourParams.item.overlay.hoveringBehaviour].NEVER_SHOW)return!0;if(t)return!0;if((0,Z.wh)()&&i)return!0}return!1}shouldShowSecondMediaOnMobile(){return!!s.Z.isMobile()&&(this.props.options[l.Z.behaviourParams.item.clickAction]===a.Z[l.Z.behaviourParams.item.clickAction].NOTHING&&"video"!==this.props.type&&"3d"!==this.props.type&&this.props.options[l.Z.behaviourParams.item.secondaryMedia.trigger]===a.Z[l.Z.behaviourParams.item.secondaryMedia.trigger].HOVER)}shouldHoverWithoutOverlayAndClickOnMobile(){return s.Z.isMobile()&&this.props.options[l.Z.behaviourParams.item.video.playTrigger]===a.Z[l.Z.behaviourParams.item.video.playTrigger].HOVER&&this.props.options[l.Z.behaviourParams.item.clickAction]===a.Z[l.Z.behaviourParams.item.clickAction].NOTHING}isHighlight(){return this.props.thumbnailHighlightId&&this.props.thumbnailHighlightId===this.props.id}shouldHover(){const{options:e}=this.props,{alwaysShowHover:t,previewHover:i}=e,r=e[l.Z.behaviourParams.item.overlay.hoveringBehaviour],{NEVER_SHOW:o,APPEARS:n}=a.Z[l.Z.behaviourParams.item.overlay.hoveringBehaviour],{NO_EFFECT:u}=a.Z[l.Z.behaviourParams.item.overlay.hoverAnimation];return r!==o&&(!0===t||(!(!(0,Z.wh)()||!i)||!(r===n&&e[l.Z.behaviourParams.item.overlay.hoverAnimation]===u&&!this.state.itemWasHovered)&&(!s.Z.isMobile()||this.shouldShowHoverOnMobile())))}getItemHover(e){const t=this.props,{customComponents:i}=t,a=(0,r.__rest)(t,["customComponents"]);return this.shouldHover()&&o.createElement(K,Object.assign({},a,{forceShowHover:this.simulateOverlayHover(),isCurrentHover:this.simulateHover(),imageDimensions:e,itemWasHovered:this.state.itemWasHovered,key:"hover",actions:{handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp},renderCustomInfo:i.customHoverRenderer?()=>i.customHoverRenderer(le(this.props)):null}))}getImageItem(e){const t=s.Z.pick(this.props,["gotFirstScrollEvent","alt","title","description","id","idx","options","createUrl","createMagnifiedUrl","settings","isPrerenderMode","isTransparent","style","hasSecondaryMedia","secondaryMediaItem","customComponents"]);return o.createElement(ce,Object.assign({},t,{key:"imageItem",imageDimensions:e,isThumbnail:!!this.props.thumbnailHighlightId,isCurrentHover:this.simulateHover(),itemWasHovered:this.state.itemWasHovered,actions:{handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp,setItemLoaded:this.setItemLoaded}}))}get3dItem(e,t){const{calculatedAlt:i,title:r,description:a,id:s,idx:n,options:l,createUrl:u,createMagnifiedUrl:c,settings:h,isPrerenderMode:m,isTransparent:d,style:p,customComponents:g,scene:y,activeIndex:_,isCurrentHover:v}=this.props;return o.createElement(V,{key:"3dItem",imageDimensions:e,itemContainer:this.itemContainer,shouldPlay:this.props.idx===this.props.playing3DIdx,actions:Object.assign(Object.assign({},this.props.actions),{setItemLoaded:this.setItemLoaded,handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp}),hasLink:this.itemHasLink(),hover:t,activeIndex:_,calculatedAlt:i,createMagnifiedUrl:c,createUrl:u,customComponents:g,title:r,description:a,id:s,idx:n,isPrerenderMode:m,isTransparent:d,options:l,scene:y,style:p,settings:h,isCurrentHover:v})}getVideoItem(e,t){return o.createElement(ne,Object.assign({},this.props,{shouldPlay:this.props.idx===this.props.playingVideoIdx,key:"video"+this.props.idx,hover:t,imageDimensions:e,hasLink:this.itemHasLink(),isCurrentHover:this.simulateHover(),actions:Object.assign(Object.assign({},this.props.actions),{setItemLoaded:this.setItemLoaded,handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp})}))}getTextItem(e){const t=s.Z.pick(this.props,["id","options","style","html","cropRatio","isPrerenderMode","hasSecondaryMedia","secondaryMediaItem"]);return o.createElement(he,Object.assign({},t,{key:"textItem",imageDimensions:e,isCurrentHover:this.simulateHover(),itemWasHovered:this.state.itemWasHovered,actions:{handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp,setItemLoaded:this.setItemLoaded}}))}getItemInner(){const{type:e,style:t,offset:i}=this.props;let r;const{innerWidth:a,innerHeight:s}=t,{innerTop:n,innerLeft:l}=i,u={width:a,height:s,marginTop:n,marginLeft:l};let c=null;switch(this.shouldHover()&&(c=this.getItemHover(u)),e){case"dummy":r=o.createElement("div",null);break;case"video":r=this.getVideoItem(u,c);break;case"text":r=[this.getTextItem(u),c];break;case"3d":r=this.get3dItem(u,c);break;default:r=this.props.isVideoPlaceholder?this.getVideoItem(u,c):[this.getImageItem(u),c]}return r}getRightInfoElementIfNeeded(){return a.Z.hasExternalRightPlacement(this.props.options[l.Z.layoutParams.info.placement],this.props.idx)?this.getExternalInfoElement(a.Z[l.Z.layoutParams.info.placement].RIGHT,"gallery-item-right-info"):null}getLeftInfoElementIfNeeded(){return a.Z.hasExternalLeftPlacement(this.props.options[l.Z.layoutParams.info.placement],this.props.idx)?this.getExternalInfoElement(a.Z[l.Z.layoutParams.info.placement].LEFT,"gallery-item-left-info"):null}getBottomInfoElementIfNeeded(){return a.Z.hasExternalBelowPlacement(this.props.options[l.Z.layoutParams.info.placement],this.props.idx)?this.getExternalInfoElement(a.Z[l.Z.layoutParams.info.placement].BELOW,"gallery-item-bottom-info"):null}getTopInfoElementIfNeeded(){return a.Z.hasExternalAbovePlacement(this.props.options[l.Z.layoutParams.info.placement],this.props.idx)?this.getExternalInfoElement(a.Z[l.Z.layoutParams.info.placement].ABOVE,"gallery-item-top-info"):null}getExternalInfoElement(e,t){const{options:i,customComponents:r,style:s}=this.props;if(!r.customInfoRenderer)return null;let n=null;const u=i[l.Z.layoutParams.info.height]+(this.hasRequiredMediaUrl?0:s.height),c=s.infoWidth+(this.hasRequiredMediaUrl?0:s.width),h=r.customInfoRenderer(le(this.props),e),m=a.Z.isLayout("SLIDESHOW")(this.props.options);return n=o.createElement("div",{className:"gallery-item-common-info-outer "+ue(this.props,m),style:Object.assign({},te(e,i,s.height,i[l.Z.layoutParams.info.height]))},o.createElement("div",{style:ie(e,i,u,c),className:"gallery-item-common-info "+t,onClick:this.onItemInfoClick},h)),n}simulateHover(){return this.state.isCurrentHover||!0===this.props.options.alwaysShowHover||(0,Z.wh)()&&this.props.options.previewHover}simulateOverlayHover(){return this.simulateHover()||this.props.options[l.Z.behaviourParams.item.overlay.hoveringBehaviour]===a.Z[l.Z.behaviourParams.item.overlay.hoveringBehaviour].ALWAYS_SHOW}itemHasLink(){const{linkData:e,linkUrl:t}=this.props;return!(void 0===e.type&&(void 0===t||""===t))}getItemContainerStyles(){const{idx:e,activeIndex:t,offset:i,style:r,options:o,settings:s={}}=this.props,n=o[l.Z.layoutParams.structure.itemSpacing],u=o[l.Z.behaviourParams.gallery.horizontal.slideAnimation],c=o[l.Z.behaviourParams.gallery.layoutDirection]===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,h=o[l.Z.layoutParams.structure.scrollDirection],m=J(o),d={overflowY:"hidden",position:"absolute",bottom:"auto",margin:h===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?n/2+"px":0},{avoidInlineStyles:p}=s,g=this.props.isPrerenderMode&&!this.props.settings.disableSSROpacity,y=p?{}:{opacity:g?0:1,display:g?"none":"block",transition:"opacity .2s ease"},_=p?{}:{top:i.top,left:c?"auto":i.left,right:c?i.left:"auto",width:r.width+r.infoWidth,height:r.height+r.infoHeight};let v;switch(u){case a.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].FADE:v={left:c?"auto":0,right:c?0:"auto",pointerEvents:t===e?"auto":"none",zIndex:t===e?0:1};break;case a.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].DECK:v={left:c?"auto":0,right:c?0:"auto",pointerEvents:t===e?"auto":"none",zIndex:Math.sign(t-e)};break;default:v={}}const f=this.state.loaded&&((0,Z.wh)()||(0,Z.g4)())?{transition:"all .4s ease",transitionProperty:"top, left, width, height, opacity"}:{transition:"none"};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},d),_),m),f),y),v)}getItemWrapperStyles(){const{createUrl:e,options:t,style:i,type:r,offset:o}=this.props,{height:s,width:n,innerWidth:u,innerHeight:c}=i,{innerTop:h,innerLeft:m}=o;let d={};d.backgroundColor="text"===r?t[l.Z.layoutParams.crop.method]!==a.Z[l.Z.layoutParams.crop.method].FIT?"transparent":"inherit":(t[l.Z.layoutParams.crop.method]!==a.Z[l.Z.layoutParams.crop.method].FIT?i.bgColor:"inherit")||"transparent",t[l.Z.behaviourParams.item.content.hoverAnimation]===a.Z[l.Z.behaviourParams.item.content.hoverAnimation].MAIN_COLOR&&(d=Object.assign(Object.assign({},d),{background:`url(${e(a.Z.urlSizes.PIXEL,a.Z.urlTypes.HIGH_RES)})`,backgroundSize:`${u}px ${c}px`,backgroundRepeat:"no-repeat",backgroundPosition:`top ${h}px left ${m}px`}));const{TILT:p}=a.Z[l.Z.behaviourParams.item.content.hoverAnimation];return t[l.Z.behaviourParams.item.content.hoverAnimation]===p&&(d["--tiltAngleValue"]=t[l.Z.behaviourParams.item.content.tiltAngleValue]),d.height=s+"px",d.width=n+"px",d.margin=-t[l.Z.stylingParams.itemBorderWidth]+"px",d}getItemAriaLabel(){const{type:e,alt:t,htmlContent:i,options:r}=this.props;return{dummy:"",text:i,video:t||e||"",image:t||e||""}[e]+(r.isStoreGallery?", Buy Now":"")}isItemClickable(e){const t=!this.itemHasLink();return!(e[l.Z.behaviourParams.item.clickAction]===a.Z[l.Z.behaviourParams.item.clickAction].NOTHING||e[l.Z.behaviourParams.item.clickAction]===a.Z[l.Z.behaviourParams.item.clickAction].LINK&&t)}getItemContainerClass(){const{options:e}=this.props,t=e[l.Z.behaviourParams.item.content.placementAnimation],i=e[l.Z.behaviourParams.item.overlay.hoverAnimation],r=e[l.Z.behaviourParams.item.content.hoverAnimation],{FADE_IN:o,EXPAND:n,SLIDE_UP:u,SLIDE_RIGHT:c,SLIDE_DOWN:h,SLIDE_LEFT:m}=a.Z[l.Z.behaviourParams.item.overlay.hoverAnimation],{MAIN_COLOR:d,ZOOM_IN:p,TILT:g,BLUR:y,GRAYSCALE:_,SHRINK:v,INVERT:f,COLOR_IN:P,DARKENED:b}=a.Z[l.Z.behaviourParams.item.content.hoverAnimation],I=this.simulateHover(),S={"gallery-item-container":!0,"item-container-regular":!I,"item-container-hover":I,"has-custom-focus":!0,visible:!0,"pro-gallery-highlight":this.isHighlight(),clickable:this.isItemClickable(e),"simulate-hover":this.simulateHover(),"hide-hover":!this.simulateHover()&&s.Z.isMobile(),"invert-hover":e[l.Z.behaviourParams.item.overlay.hoveringBehaviour]===a.Z[l.Z.behaviourParams.item.overlay.hoveringBehaviour].DISAPPEARS,"animation-slide":t===a.Z[l.Z.behaviourParams.item.content.placementAnimation].SLIDE,"hover-animation-fade-in":i===o,"hover-animation-expand":i===n,"hover-animation-slide-up":i===u,"hover-animation-slide-right":i===c,"hover-animation-slide-down":i===h,"hover-animation-slide-left":i===m,"main-color-on-hover":r===d,"zoom-in-on-hover":r===p,"tilt-on-hover":r===g,"blur-on-hover":r===y,"grayscale-on-hover":r===_,"shrink-on-hover":r===v,"invert-on-hover":r===f,"color-in-on-hover":r===P,"darkened-on-hover":r===b,"pro-gallery-mobile-indicator":s.Z.isMobile()};return Object.entries(S).map((([e,t])=>!!t&&e)).filter(Boolean).join(" ")}getItemWrapperClass(){const{options:e,type:t}=this.props,i=["gallery-item-wrapper","visible"];return e[l.Z.layoutParams.crop.enable]&&i.push("cube-type-"+e[l.Z.layoutParams.crop.method].toLowerCase()),"text"===t&&i.push("gallery-item-wrapper-text"),i.push(ue(this.props)),i.join(" ")}getItemContainerTabIndex(){return this.isHighlight()?s.Z.getTabIndex("currentThumbnail"):this.props.activeIndex===this.props.idx?s.Z.getTabIndex("currentGalleryItem"):-1}componentDidMount(){if(s.Z.isMobile()&&"function"==typeof o.initializeTouchEvents)try{o.initializeTouchEvents(!0)}catch(e){console.error(e)}C.Z.addEventListener("current_hover_change",this.checkIfCurrentHoverChanged)}componentWillUnmount(){clearTimeout(this.itemLoadedTimeout),C.Z.removeEventListener("current_hover_change",this.checkIfCurrentHoverChanged)}componentDidUpdate(e){(0,X.sq)({prevProps:e,currentProps:this.props,itemActionRef:this.itemActionRef})}checkIfCurrentHoverChanged(e){e.galleryId===this.props.galleryId&&(this.state.isCurrentHover||e.currentHoverIdx!==this.props.idx?this.state.isCurrentHover&&e.currentHoverIdx!==this.props.idx&&this.setState({isCurrentHover:!1}):this.setState({isCurrentHover:!0,itemWasHovered:!0}))}onContextMenu(e){!s.Z.isDev()&&this.props.options[l.Z.behaviourParams.gallery.blockContextMenu]&&e.preventDefault(e)}getItemAriaRole(){switch(this.props.options[l.Z.behaviourParams.item.clickAction]){case a.Z[l.Z.behaviourParams.item.clickAction].ACTION:return"button";case a.Z[l.Z.behaviourParams.item.clickAction].LINK:return"link";default:return""}}getItemAriaHaspopup(){switch(this.props.options.itemClick){case"expand":case"fullscreen":return!0;default:return!1}}onContainerKeyUp(e){switch(e.keyCode||e.charCode){case 32:case 13:return e.stopPropagation(),this.onItemClick(e,"item-container",!1),this.shouldUseDirectLink()&&this.itemAnchor.click(),!1;case 27:return this.state.isCurrentHover?this.props.actions.eventsListener(a.Z.events.HOVER_SET,-1):(e.target.blur(),this.props.actions.eventsListener(a.Z.events.ITEM_LOST_FOCUS,this.props)),!1;default:return!0}}composeItem(){var e,t;const{photoId:i,id:r,hash:s,idx:n,options:u,type:c,url:h}=this.props;this.hasRequiredMediaUrl=h||"text"===c;const m=u[l.Z.layoutParams.info.placement]!==a.Z[l.Z.layoutParams.info.placement].OVERLAY&&!this.hasRequiredMediaUrl,d=this.getItemAriaRole(),p=this.getItemAriaLabel(),g=this.getItemAriaHaspopup(),y=(null===(e=this.props.elementsOverride)||void 0===e?void 0:e.item)||"div",_=o.createElement(y,{className:this.getItemContainerClass(),onContextMenu:e=>this.onContextMenu(e),id:q.getSellectorDomId(this.props),ref:this.itemContainer,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onFocus,onBlur:this.onBlur,"data-hash":s,"data-id":i,"data-idx":n,"data-hook":"item-container",key:"item-container-"+r,style:this.getItemContainerStyles(),onKeyUp:this.onContainerKeyUp,onClick:this.onItemWrapperClick},this.props.disableItemFocus?null:o.createElement("div",Object.assign({"data-idx":n,id:"item-action-"+r,className:"item-action",ref:e=>this.itemActionRef=e,onKeyUp:this.onContainerKeyUp,tabIndex:this.getItemContainerTabIndex(),onFocus:this.onFocus,onBlur:this.onBlur,"data-hook":"item-action"},p&&{"aria-label":p},d&&{role:d},g&&{"aria-haspopup":g?"dialog":""})),this.getTopInfoElementIfNeeded(),this.getLeftInfoElementIfNeeded(),o.createElement("div",{style:Object.assign(Object.assign(Object.assign({},Q(this.props.options)),a.Z.hasExternalRightPlacement(this.props.options[l.Z.layoutParams.info.placement],this.props.idx)&&{float:"left"}),a.Z.hasExternalLeftPlacement(this.props.options[l.Z.layoutParams.info.placement],this.props.idx)&&{float:"right"})},!m&&o.createElement("div",{"data-hook":"item-wrapper",className:this.getItemWrapperClass(),key:"item-wrapper-"+r,id:"item-wrapper-"+r,style:this.getItemWrapperStyles()},this.getItemInner())),this.getRightInfoElementIfNeeded(),this.getBottomInfoElementIfNeeded()),v=function({directLink:e,options:t,directShareLink:i,noFollowForSEO:r}){const o=(0,Z.Vg)();if(t[l.Z.behaviourParams.item.clickAction]===a.Z[l.Z.behaviourParams.item.clickAction].LINK){const{url:t,target:i}=e||{},a=o&&r?{rel:"nofollow"}:{};return t&&i?Object.assign({href:t,target:i},a):{}}if(t[l.Z.behaviourParams.item.clickAction]===a.Z[l.Z.behaviourParams.item.clickAction].ACTION){const e=i,r=!!e,o=t[l.Z.behaviourParams.gallery.enableIndexingShareLinks]?{}:{rel:"nofollow"};return r?Object.assign({href:e,"data-cancel-link":!0},o):{}}}(this.props),f={ref:e=>this.itemAnchor=e,"data-id":i,className:"item-link-wrapper","data-idx":n,"data-hook":"item-link-wrapper",onFocus:()=>{(0,X.VD)({itemAnchor:this.itemAnchor,enableExperimentalFeatures:this.props.enableExperimentalFeatures,itemContainer:this.itemContainer})},tabIndex:-1,onKeyDown:e=>{this.onAnchorKeyDown(e)}};return(null===(t=null==v?void 0:v.href)||void 0===t?void 0:t.length)>0?o.createElement("a",Object.assign({key:"item-container-link-"+r},f,v),_):o.createElement("div",Object.assign({key:"item-container-div-"+r},f),_)}render(){return this.composeItem()}}var de=me;class pe extends o.Component{constructor(e){super(e),this.handleKeys=this.handleKeys.bind(this),this.showMoreItems=this.showMoreItems.bind(this),this.onLoadMoreButtonKeyDown=this.onLoadMoreButtonKeyDown.bind(this),this.onLoadMoreButtonKeyUp=this.onLoadMoreButtonKeyUp.bind(this),this.createGalleryConfig=this.createGalleryConfig.bind(this),this.screenLogs=this.screenLogs.bind(this),this.createGallery=this.createGallery.bind(this),this.id=Date.now()+"|"+Math.floor(1e4*Math.random()),this.state={activeIndex:0}}handleKeys(e){const t=C.Z.document.activeElement.getAttribute("data-idx");if(t){const i=this.props.actions.findNeighborItem||this.props.galleryStructure.findNeighborItem||(()=>{}),r=Number(t);let o=-1;switch(e.keyCode||e.charCode){case 38:o=i(r,"up");break;case 37:o=i(r,this.props.options[l.Z.behaviourParams.gallery.layoutDirection]===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?"right":"left");break;case 40:if(o=i(r,"down"),this.props.totalItemsCount-1===o&&o===this.state.activeIndex)return e.stopPropagation(),s.Z.focusGalleryElement(this.props.outOfViewComponent),!1;break;case 39:o=i(r,this.props.options[l.Z.behaviourParams.gallery.layoutDirection]===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?"left":"right");break;case 27:return!1}if(o>this.lastVisibleItemIdx()&&(o=r),o>=0)return e.preventDefault(),e.stopPropagation(),s.Z.setStateAndLog(this,"Set Gallery Current Item",{activeIndex:o}),!1}return!0}lastVisibleItemIdxInHeight(e){for(let t=this.props.galleryStructure.items.length-1;t>=0;t--){if(this.props.galleryStructure.items[t].offset.top{this.props.actions.toggleLoadMoreItems()}))}catch(e){console.warn("showMoreItems: Cannot find item to focus",e)}else this.props.actions.toggleLoadMoreItems()}onLoadMoreButtonKeyDown(e){switch(e.keyCode||e.charCode){case 32:case 13:return e.preventDefault(),e.stopPropagation(),!1}}onLoadMoreButtonKeyUp(e){switch(e.keyCode||e.charCode){case 32:case 13:return e.stopPropagation(),s.Z.setStateAndLog(this,"Set Gallery Current Item",{activeIndex:this.lastVisibleItemIdx()}),setTimeout((()=>{this.props.actions.toggleLoadMoreItems()}),0),!1}}createGallery(e){var t;const{options:i,settings:r,container:s,galleryStructure:n,getVisibleItems:u,virtualizationSettings:c,scrollTop:h}=this.props,m=this.createGalleryConfig(),d=o.createElement(R,Object.assign({},this.props.debug));let p;p=e?s.galleryHeight-138:n.height+"px";const g=this.props.isPrerenderMode?"auto":this.props.container.galleryWidth-i[l.Z.layoutParams.structure.itemSpacing],y=function({items:e,options:t,virtualizationSettings:i,galleryWidth:r,galleryHeight:o,scrollPosition:s}){const{enabled:n=!1,forwardItemScrollMargin:u=10,backwardItemScrollMargin:c=10}=i||{};if(!n)return e.map((e=>({item:e,shouldRender:!0})));const h=t[l.Z.layoutParams.structure.scrollDirection]===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL,m=h?r:o,d=h?"width":"height";function p(e){const t=e.group,i=t["height"===d?"top":"left"],r=i+t[d];return i>s-m*c&&r({item:e,shouldRender:p(e)})))}({items:u(n.galleryItems,s,this.props.isPrerenderMode),options:i,virtualizationSettings:c,galleryHeight:Math.min(n.height,(null===(t=s.screen)||void 0===t?void 0:t.height)||n.height),scrollPosition:h||0}),_=y.map((({item:e,shouldRender:t},i)=>{const r=e.renderProps(Object.assign(Object.assign({},m),{visible:e.isVisible,key:`itemView-${e.id}-${i}`}));return o.createElement(de,Object.assign(Object.assign({},r),{type:t?r.type:"dummy"}))}));return o.createElement("div",{id:this.props.galleryContainerId,className:"pro-gallery inline-styles "+(i[l.Z.layoutParams.structure.scrollDirection]===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?" one-row slider hide-scrollbars ":"")+((null==r?void 0:r.isAccessible)?" accessible ":"")+(i[l.Z.behaviourParams.gallery.layoutDirection]===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?" rtl ":" ltr "),style:{height:p,overflowX:"hidden"},onKeyDown:this.handleKeys},o.createElement("div",{id:`pro-gallery-margin-container-${this.props.id}`,className:"pro-gallery-margin-container",style:{margin:(this.props.options.galleryMargin||this.props.options[l.Z.layoutParams.structure.gallerySpacing])+"px",height:p,width:g,overflow:"visible",position:"relative"}},d,_))}createGalleryConfig(){return{scrollingElement:this.props.scrollingElement,scroll:this.props.scroll,container:this.props.container,options:this.props.options,settings:this.props.settings,activeIndex:this.state.activeIndex,customComponents:this.props.customComponents,galleryId:this.props.id,gotFirstScrollEvent:this.props.gotFirstScrollEvent,playingVideoIdx:this.props.playingVideoIdx,playing3DIdx:this.props.playing3DIdx,noFollowForSEO:this.props.noFollowForSEO,isPrerenderMode:this.props.isPrerenderMode,firstUserInteractionExecuted:this.props.firstUserInteractionExecuted,enableExperimentalFeatures:this.props.enableExperimentalFeatures,actions:{eventsListener:this.props.actions.eventsListener}}}screenLogs(){return s.Z.shouldDebug("screenLogs")?o.createElement("div",{className:"screen-logs"},"URL width: ",s.Z.parseGetParam("width"),", Container: ",JSON.stringify(this.props.container.galleryWidth),", window.document.body.clientWidth ",document.body.clientWidth,", window.innerWidth ",C.Z.innerWidth,", window.screen.width: ",C.Z.screen.width):""}createShowMoreButton(){if("function"==typeof this.props.customComponents.customLoadMoreRenderer)return o.createElement("div",{onClick:this.showMoreItems},this.props.customComponents.customLoadMoreRenderer(this.props));const{options:e}=this.props;let t=!1;if(this.props.displayShowMore&&this.props.galleryStructure.height>this.props.container.height){const i=e[l.Z.behaviourParams.gallery.vertical.loadMore.text]||"Load More";t=o.createElement("div",{className:"show-more-container"+(s.Z.isMobile()?" pro-gallery-mobile-indicator":"")},o.createElement("button",{tabIndex:s.Z.getTabIndex("loadMoreButton"),id:"show-more-"+this.props.id,className:"show-more",onClick:this.showMoreItems,onMouseDown:e=>e.preventDefault(),"data-hook":"show-more","aria-label":i,onKeyDown:this.onLoadMoreButtonKeyDown,onKeyUp:this.onLoadMoreButtonKeyUp},i))}return t}render(){s.Z.isVerbose()&&(console.count("galleryView render"),console.time("Rendering Gallery took "),console.log("[DEBUG_RENDER] GalleryView options",this.props.options),console.log("[DEBUG_RENDER] GalleryView props changed",s.Z.printableObjectsDiff(this.lastProps||{},this.props)),this.lastProps=Object.assign({},this.props),console.log("[DEBUG_RENDER] GalleryView state changed",s.Z.printableObjectsDiff(this.lastState||{},this.state)),this.lastState=Object.assign({},this.state),this.renderCount=(this.renderCount||0)+1);const e=this.createShowMoreButton(),t=this.createGallery(e);s.Z.isVerbose()&&console.timeEnd("Rendering Gallery took ");const i=this.screenLogs();return o.createElement("div",Object.assign({className:"pro-gallery-parent-container",key:`pro-gallery-${this.id}`},s.Z.getAriaAttributes({proGalleryRole:this.props.proGalleryRole,proGalleryRegionLabel:this.props.proGalleryRegionLabel})),i,t,e)}}var ge=pe;class ye extends o.Component{constructor(e){super(e),this.displayName="GroupView",this.dom=[],this.state={}}createDom(e,t){return this.props.items.map((i=>{const r=i.renderProps(Object.assign(Object.assign({},this.props.galleryConfig),{visible:e}));return o.createElement(de,Object.assign(Object.assign({},r),{disableItemFocus:this.props.disableItemFocus,type:null!=t&&t?"dummy":r.type}))}))}shouldRender(){const{items:e}=this.props;return!!(e&&e.length&&e[0])}isVisible(){const{items:e,galleryConfig:t}=this.props;if(this.props.allowLoop){const{idx:i}=e[e.length-1],{activeIndex:r,totalItemsCount:o}=t,a=r-i,s=Math.floor(o/2);return Math.abs(a)<=s}return!0}render(){const{options:e}=this.props.galleryConfig,t=e[l.Z.behaviourParams.gallery.layoutDirection]===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT;return this.shouldRender()?o.createElement("div",{key:`group_${this.props.idx}_${this.props.items[0].id}`,"data-hook":"group-view",className:`group-view group-view-${this.props.idx}`,style:{"--group-top":this.props.top+"px","--group-left":t?"auto":this.props.left+"px","--group-width":this.props.width+"px","--group-right":t?this.props.left+"px":"auto"},"aria-hidden":this.props.ariaHidden},this.createDom(this.isVisible(),this.props.shouldRenderEmpty)):null}}var _e=ye,ve=i(60216);const fe=e=>{var{size:t}=e,i=(0,r.__rest)(e,["size"]);return o.createElement("svg",Object.assign({viewBox:"0 0 11 14",fill:"currentColor",width:t||"11",height:t||"14"},i),o.createElement("g",{id:"final",stroke:"none",fill:"none",strokeWidth:"1",fillRule:"evenodd"},o.createElement("g",{id:"Pause",transform:"translate(-490 -763)",fill:"currentColor"},o.createElement("g",{id:"Group-2",transform:"translate(470 284)"},o.createElement("g",{id:"Group",transform:"translate(20 479)"},o.createElement("path",{id:"play",d:"M0.0788076641 0L0 14 10.5 6.81856071z"}))))))};fe.displayName="play",fe.propTypes={size:ve.string};var Pe=fe;const be=e=>{var{size:t}=e,i=(0,r.__rest)(e,["size"]);return o.createElement("svg",Object.assign({viewBox:"0 0 10 14",fill:"currentColor",width:t||"10",height:t||"14"},i),o.createElement("g",{id:"final",stroke:"none",fill:"none",strokeWidth:"1",fillRule:"evenodd"},o.createElement("g",{id:"Play",transform:"translate(-490 -763)",fill:"currentColor"},o.createElement("g",{id:"Group-2",transform:"translate(470 284)"},o.createElement("g",{id:"Group",transform:"translate(20 479)"},o.createElement("path",{d:"M7,0 L10,0 L10,14 L7,14 L7,0 Z M0,0 L3,0 L3,14 L0,14 L0,0 Z",id:"_copy_3"}))))))};be.displayName="pause",be.propTypes={size:ve.string};var Ie=be;function Se({activeIndex:e,prevActiveIndex:t,activeIndexOffsetMemory:i,items:r}){const o=r.length;if(e===t)return i;e=s.Z.inRange(e,o);const a=Math.abs(t-e),n=Math.abs(t-o-e),l=Math.abs(t+o-e);return lvoid 0!==e.idx)).sort(((e,t)=>e.idx-t.idx))).map((t=>({item:e.find((e=>e.id===t.id)),thumbnailItem:t,idx:t.idx})))}function Oe({horizontalThumbnails:e,containerWidth:t,containerHeight:i,thumbnailSize:r}){return e?{width:t,height:r}:{width:r,height:i}}function Te({width:e,height:t,horizontalThumbnails:i}){return i?Math.ceil(e/t):Math.ceil(t/e)}function Le({horizontalThumbnails:e,width:t,height:i,activeIndex:r,thumbnailSizeWithSpacing:o,itemsCount:a}){const s={overflow:"visible",width:t,height:i},n=e?"left":"top",l=o*(r%a),u=(e?t:i)/2-o/2;return Object.assign(Object.assign({},s),{[n]:l{const a=o+O[0].idx;return{thumbnailItem:t,item:e,location:Ae({thumbnailAlignment:r,offset:a,isRTL:p,thumbnailSizeWithSpacing:y}),idx:i}})),thumbnailsMargins:w,horizontalThumbnails:_,thumbnailsStyle:L,activeIndexOffsetMemory:c}},getThumbnailsContainerSize:Oe,getNumberOfThumbnails:Te,getThumbnailsStyles:Le,getThumbnailsContainerMargin:we,getThumbnailLocation:Ae,calculateActiveIndexOffset:Se,clearGalleryItems:Ee};class xe extends o.Component{constructor(e){super(e),this.scrollToThumbnail=this.scrollToThumbnail.bind(this)}scrollToThumbnail(e){this.props.navigationToIdxCB(e)}createThumbnails({navigationPanelPosition:e,thumbnailAlignment:t,options:i,galleryStructure:r,settings:n}){const u=Ze.clearGalleryItems(this.props.items,this.props.galleryStructure.galleryItems),c=s.Z.inRange(this.props.activeIndex,u.length),{horizontalThumbnails:h,items:m,thumbnailsMargins:d,thumbnailsStyle:p,activeIndexOffsetMemory:g}=Ze.getThumbnailsData({items:this.props.items,activeIndex:c,options:i,galleryStructure:r,thumbnailAlignment:t,containerHeight:this.props.container.height,containerWidth:this.props.container.width,activeIndexOffsetMemory:this.activeIndexOffsetMemory,prevActiveIndex:this.prevActiveIndex});return this.prevActiveIndex=c,this.activeIndexOffsetMemory=g,o.createElement("div",{className:"pro-gallery inline-styles thumbnails-gallery "+(this.props.domOrder?"thumbnails-gallery-"+this.props.domOrder:"")+(h?" one-row hide-scrollbars ":"")+(i[l.Z.behaviourParams.gallery.layoutDirection]===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?" rtl ":" ltr ")+((null==n?void 0:n.isAccessible)?" accessible ":""),style:Object.assign(Object.assign(Object.assign(Object.assign({},this.props.isPrerenderMode?{display:"block"}:{}),{width:p.width,height:p.height}),d),Re({galleryThumbnailsAlignment:t,navigationPanelPosition:e})),"data-hook":"gallery-thumbnails"},o.createElement("div",{"data-hook":"gallery-thumbnails-column",className:"galleryColumn",key:"thumbnails-column",style:Object.assign({},p)},m.map((({thumbnailItem:e,location:t,idx:r})=>{const n=r===c%u.length,h=Object.assign(Object.assign({width:i[l.Z.layoutParams.thumbnails.size],height:i[l.Z.layoutParams.thumbnails.size],overflow:"hidden",backgroundImage:`url(${e.createUrl(a.Z.urlSizes.THUMBNAIL,a.Z.urlTypes.HIGH_RES)})`},t),this.props.isPrerenderMode?{opacity:0}:{});return o.createElement("div",{key:"thumbnail-"+e.id+(Number.isInteger(r)?"-"+r:""),className:"thumbnailItem thumbnail-"+e.idx+(n?" pro-gallery-thumbnails-highlighted pro-gallery-highlight"+(s.Z.isMobile()?" pro-gallery-mobile-indicator":""):""),"data-key":e.id,style:h,onClick:()=>this.scrollToThumbnail(r),tabIndex:0,onKeyDown:e=>{"Enter"===e.key&&this.scrollToThumbnail(r)}},"video"===e.type&&i[l.Z.behaviourParams.item.video.enableThumbnailsPlayButton]&&o.createElement(z.U,{type:"videoPlayButton",size:"28"}),"3d"===e.type&&i[l.Z.behaviourParams.item.threeDimensionalScene.enableThumbnailsPlayButton]&&o.createElement(z.U,{type:"rotateArrow",size:"28"}),"text"===e.type?o.createElement(Y,Object.assign({},this.props,e.renderProps(),{options:Object.assign(Object.assign({},i),{[l.Z.layoutParams.crop.method]:a.Z[l.Z.layoutParams.crop.method].FILL,[l.Z.layoutParams.crop.enable]:!0}),actions:{},imageDimensions:Object.assign(Object.assign({},h),{marginTop:0,marginLeft:0}),style:Object.assign(Object.assign({},e.renderProps().style),h)})):null)}))))}render(){const e={navigationPanelPosition:this.props.options[l.Z.layoutParams.thumbnails.position],thumbnailAlignment:this.props.options[l.Z.layoutParams.thumbnails.alignment],options:this.props.options,galleryStructure:this.props.galleryStructure,settings:this.props.settings};return this.createThumbnails(e)}}const Ce=({width:e,height:t,galleryHeight:i,navigationPanelPosition:r})=>r===a.Z[l.Z.layoutParams.thumbnails.position].ON_GALLERY?{}:{width:e,height:t-i},Ne=({galleryHeight:e,galleryWidth:t,height:i,width:r,galleryThumbnailsAlignment:o,navigationPanelPosition:s})=>{switch(o){case a.Z[l.Z.layoutParams.thumbnails.alignment].TOP:case a.Z[l.Z.layoutParams.thumbnails.alignment].BOTTOM:return Ce({galleryHeight:e,galleryWidth:t,height:i,width:r,navigationPanelPosition:s});case a.Z[l.Z.layoutParams.thumbnails.alignment].RIGHT:case a.Z[l.Z.layoutParams.thumbnails.alignment].LEFT:return(({width:e,height:t,galleryWidth:i,navigationPanelPosition:r})=>r===a.Z[l.Z.layoutParams.thumbnails.position].ON_GALLERY?{}:{width:e-i,height:t})({galleryHeight:e,galleryWidth:t,height:i,width:r,navigationPanelPosition:s});default:return!1}},Re=({galleryThumbnailsAlignment:e,navigationPanelPosition:t})=>{if(t===a.Z[l.Z.layoutParams.thumbnails.position].ON_GALLERY){let t={position:"absolute"};return t[e.toLowerCase()]=0,t}};var De=xe,Me=i(95561),Ge=i(50160);var ke={DEFAULT_ARROW:{SvgComp:({style:e})=>o.createElement("svg",{className:"slideshow-arrow",style:e,width:"23",height:"39",viewBox:"0 0 23 39"},o.createElement("path",{d:"M857.005,231.479L858.5,230l18.124,18-18.127,18-1.49-1.48L873.638,248Z",transform:"translate(-855 -230)"})),width:23,height:39},ARROW_2:{SvgComp:({style:e})=>o.createElement("svg",{className:"slideshow-arrow",style:e,width:"40px",height:"33px",viewBox:"0 0 40 33",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o.createElement("g",{id:"Artboard-Copy-93",transform:"translate(-28.000000, -32.000000)",fillRule:"nonzero"},o.createElement("polygon",{id:"4",points:"51.5515789 32 67.6 48.0484211 51.5515789 64.0968421 46.9663158 59.5115789 54.9880947 51.4881326 28 51.4897902 28 44.9245271 55.30728 44.9243284 46.9663158 36.5852632"})))),width:40,height:33},ARROW_3:{SvgComp:({style:e})=>o.createElement("svg",{className:"slideshow-arrow",style:e,width:"25px",height:"42px",viewBox:"0 0 25 42",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o.createElement("g",{id:"Artboard-Copy-97",transform:"translate(-36.000000, -27.000000)",fillRule:"nonzero"},o.createElement("path",{d:"M37.2206398,28.239114 C38.8026583,26.647265 41.3436172,26.5881667 42.9967317,28.0675785 L43.1590153,28.2206482 L59.1611748,44.1233571 C61.1319602,46.0819718 61.1995454,49.2312919 59.3527322,51.2754674 L59.1795659,51.4581932 L43.1590166,67.3793505 C41.51408,69.0140701 38.8553922,69.0057967 37.2206146,67.3608606 C35.638653,65.7689547 35.5953873,63.2276769 37.0850712,61.5838107 L37.2391492,61.4224839 L50.946,47.799 L37.2391492,34.1775161 C35.7003375,32.6482622 35.5938031,30.2229032 36.9247365,28.5696317 L37.0675472,28.4014262 L37.2206398,28.239114 Z",id:"8"})))),width:25,height:42},ARROW_4:{SvgComp:({style:e})=>o.createElement("svg",{className:"slideshow-arrow",style:e,width:"39px",height:"11px",viewBox:"0 0 39 11",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o.createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o.createElement("g",{transform:"translate(-29.000000, -43.000000)",fillRule:"nonzero"},o.createElement("polygon",{points:"59.79296 43 67.1767272 48.2074587 59.79296 53.3482492 59.792 49.24 29 49.2402303 29 47.3156703 59.792 47.315"})))),width:39,height:11},ARROW_5:{SvgComp:({style:e})=>o.createElement("svg",{className:"slideshow-arrow",style:e,width:"39px",height:"25px",viewBox:"0 0 39 25",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o.createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o.createElement("g",{transform:"translate(-29.000000, -36.000000)",fillRule:"nonzero"},o.createElement("path",{d:"M29,48.2400242 C29,47.3087892 29.6817196,46.6578788 30.6657131,46.6578788 L62.0721815,46.6578788 L53.6034603,38.6027842 C52.9919732,38.0244263 52.9745394,37.0965804 53.5626533,36.4993057 L53.6196503,36.4424086 C54.2232252,35.8695838 55.2162345,35.8487051 55.8566495,36.4049822 L66.7354947,46.6987178 C66.8997789,46.8532785 67.0362567,47.0299812 67.1410943,47.2233734 C67.6421069,47.9137524 67.5952684,48.7577348 67.0654839,49.3382112 L66.9183084,49.529704 C66.8745903,49.5829565 66.834409,49.6278886 66.7923536,49.6712745 L55.84922,60.0371144 C55.2232594,60.6516206 54.1974244,60.6696143 53.554893,60.0838114 C52.9168128,59.5020667 52.8980482,58.5443858 53.5126939,57.940867 L53.5761731,57.877497 L62.0800244,49.8549119 L30.6657131,49.8549119 C29.6912419,49.8549119 29,49.1805348 29,48.2400242 Z",id:"5"})))),width:39,height:25},ARROW_6:{SvgComp:({style:e})=>o.createElement("svg",{className:"slideshow-arrow",style:e,width:"26px",height:"40px",viewBox:"0 0 26 40",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o.createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o.createElement("g",{transform:"translate(-35.000000, -28.000000)",fillRule:"nonzero"},o.createElement("polygon",{points:"60.4571429 47.8 40.6571429 67.6 35 61.9428571 49.1433951 47.7994621 35 33.6571429 40.6571429 28"})))),width:26,height:40},ARROW_7:{SvgComp:({style:e})=>o.createElement("svg",{className:"slideshow-arrow",style:e,width:"40px",height:"33px",viewBox:"0 0 40 33",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o.createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o.createElement("g",{transform:"translate(-28.000000, -32.000000)",strokeWidth:"nonzero"},o.createElement("polygon",{transform:"translate(47.800000, 48.469489) rotate(-180.000000) translate(-47.800000, -48.469489) ",points:"43.2916087 32 44.4061622 33.1660321 30.8430707 47.6817192 67.6 47.6813756 67.6 49.2576026 30.9452714 49.2580761 44.4061622 63.772946 43.2924258 64.9389782 28.8681974 49.4277178 28 48.5197421"})))),width:40,height:33}};const He=({customNavArrowsRenderer:e,arrowsSize:t,svgData:i,containerStyleType:r})=>{const o=i.width/i.height>1;if(r===a.Z[l.Z.layoutParams.navigationArrows.container.type].BOX){return{navArrowsContainerWidth:t,navArrowsContainerHeight:t,scalePercentage:t/2.4/(o?i.width:i.height)}}if(e)return{navArrowsContainerWidth:t,navArrowsContainerHeight:t};const s=t/i.width;return{scalePercentage:s,navArrowsContainerWidth:t,navArrowsContainerHeight:i.height*s}},Be=e=>{const t=Fe(e),i=t.options[l.Z.layoutParams.navigationArrows.enable],{galleryWidth:r}=t.container,{isPrerenderMode:o,galleryStructure:s,customNavArrowsRenderer:n}=t,u={options:t.options,container:t.container,customNavArrowsRenderer:n},c=s.width<=r;return!!i&&!o&&(({options:e,container:t,customNavArrowsRenderer:i})=>{const{height:r}=t,o=ze(e[l.Z.layoutParams.navigationArrows.type]),{navArrowsContainerHeight:s}=He({customNavArrowsRenderer:i,arrowsSize:e[l.Z.layoutParams.navigationArrows.size],svgData:o,containerStyleType:e[l.Z.layoutParams.navigationArrows.container.type]}),n=e[l.Z.layoutParams.info.height];return{[a.Z[l.Z.layoutParams.navigationArrows.verticalAlignment].INFO_CENTER]:n,[a.Z[l.Z.layoutParams.navigationArrows.verticalAlignment].IMAGE_CENTER]:r-n,[a.Z[l.Z.layoutParams.navigationArrows.verticalAlignment].ITEM_CENTER]:r}[e[l.Z.layoutParams.navigationArrows.verticalAlignment]]>=s})(u)&&!c},Fe=e=>{const{isPrerenderMode:t,galleryStructure:i,customNavArrowsRenderer:r}=e;return{options:e.options,container:e.container,isPrerenderMode:t,galleryStructure:i,customNavArrowsRenderer:r}},ze=(e=a.Z[l.Z.layoutParams.navigationArrows.type].DEFAULT_ARROW)=>{const{DEFAULT_ARROW:t,ARROW_2:i,ARROW_3:r,ARROW_4:o,ARROW_5:s,ARROW_6:n,ARROW_7:u}=a.Z[l.Z.layoutParams.navigationArrows.type];let c;switch(e){case i:c=ke.ARROW_2;break;case r:c=ke.ARROW_3;break;case o:c=ke.ARROW_4;break;case s:c=ke.ARROW_5;break;case n:c=ke.ARROW_6;break;case u:c=ke.ARROW_7;break;default:c=ke.DEFAULT_ARROW}return c};function Ue({options:e,hideLeftArrow:t,hideRightArrow:i,container:r,customNavArrowsRenderer:n,next:u,id:c}){const h=e[l.Z.layoutParams.structure.itemSpacing],m=e[l.Z.behaviourParams.gallery.layoutDirection]===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,d=e[l.Z.layoutParams.navigationArrows.position],p=e[l.Z.layoutParams.navigationArrows.padding],g=e[l.Z.layoutParams.structure.scrollDirection],y=e[l.Z.layoutParams.navigationArrows.mouseCursorContainerMaxWidth],{arrowRenderer:_,navArrowsContainerWidth:v,navArrowsContainerHeight:f}=(({customNavArrowsRenderer:e,arrowsColor:t,arrowsSize:i,arrowsType:r,containerStyleType:n})=>{const u=ze(r),{navArrowsContainerWidth:c,navArrowsContainerHeight:h,scalePercentage:m}=He({customNavArrowsRenderer:e,arrowsSize:i,svgData:u,containerStyleType:n});if(e){const t=n===a.Z[l.Z.layoutParams.navigationArrows.container.type].BOX?i/2.4:i;return{arrowRenderer:i=>o.createElement("div",{style:{width:t,height:t}},e(i)),navArrowsContainerWidth:c,navArrowsContainerHeight:h}}return{arrowRenderer:e=>{const i={transform:`scaleX(${"right"===e?1:-1}) scale(${m})`,fill:s.Z.isMobile()&&(null==t?void 0:t.value)?t.value:""};return o.createElement(u.SvgComp,{style:i})},navArrowsContainerWidth:c,navArrowsContainerHeight:h}})({customNavArrowsRenderer:n,arrowsColor:e[l.Z.stylingParams.arrowsColor],arrowsSize:e[l.Z.layoutParams.navigationArrows.size],arrowsType:e[l.Z.layoutParams.navigationArrows.type],containerStyleType:e[l.Z.layoutParams.navigationArrows.container.type]}),P=d===a.Z[l.Z.layoutParams.navigationArrows.position].MOUSE_CURSOR,{galleryHeight:b}=r,I=e[l.Z.layoutParams.info.height],S=b-I,E=`50% + ${h/4}px`;let O;a.Z.hasExternalAbovePlacement(e[l.Z.layoutParams.info.placement])?O=-1:a.Z.hasExternalBelowPlacement(e[l.Z.layoutParams.info.placement])&&(O=1);const T={[a.Z[l.Z.layoutParams.navigationArrows.verticalAlignment].ITEM_CENTER]:0,[a.Z[l.Z.layoutParams.navigationArrows.verticalAlignment].IMAGE_CENTER]:I*O,[a.Z[l.Z.layoutParams.navigationArrows.verticalAlignment].INFO_CENTER]:-S*O}[e[l.Z.layoutParams.navigationArrows.verticalAlignment]],L=(({type:e,backgroundColor:t,borderRadius:i})=>e===a.Z[l.Z.layoutParams.navigationArrows.container.type].BOX?{backgroundColor:t,borderRadius:`${i}%`}:{})({type:e[l.Z.layoutParams.navigationArrows.container.type],backgroundColor:e[l.Z.layoutParams.navigationArrows.container.backgroundColor],borderRadius:e[l.Z.layoutParams.navigationArrows.container.borderRadius]}),w=P?Object.assign({width:`${v}px`,height:`${f}px`},L):Object.assign({width:`${v}px`,height:`${f}px`,padding:0,top:`calc(${E} - ${f/2}px - \n ${T/2}px)`},L),A=g===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&d===a.Z[l.Z.layoutParams.navigationArrows.position].OUTSIDE_GALLERY?`-${20+v}px`:`${h/2+(p||0)}px`,Z={left:P?0:A},x={right:P?0:A},C=["nav-arrows-container",{BOX:"box",SHADOW:"shadow",NONE:"only-arrows"}[e[l.Z.layoutParams.navigationArrows.container.type]]||"",s.Z.isMobile()?" pro-gallery-mobile-indicator":""],N=`arrow-portal-container-${c}`,R=P?je:We,D=e=>o.createElement(R,Object.assign({},{renderArrowSvg:_,next:u,directionIsLeft:e,arrowsBaseClasses:C,containerStyle:w,prevContainerStyle:Z,nextContainerStyle:x,isRTL:m,hideLeftArrow:t,hideRightArrow:i,arrowBoxStyle:L,navArrowsContainerWidth:v,navArrowsContainerHeight:f,navigationArrowPortalId:N,mouseCursorContainerMaxWidth:y,id:c}));return o.createElement(Ve,{hideLeftArrow:t,hideRightArrow:i,mouseCursorEnabled:P,isRTL:m,navigationArrowPortalId:N},(M=o.createElement(o.Fragment,null,t?null:D(!0),i?null:D(!1)),P?o.createElement(Ge.pz,{id:c},M):M));var M}function We({cursor:e,arrowsBaseClasses:t,containerStyle:i,prevContainerStyle:r,nextContainerStyle:a,isRTL:s,directionIsLeft:n,renderArrowSvg:l,next:u,arrowBoxStyle:c,navArrowsContainerWidth:h,navArrowsContainerHeight:m,navigationArrowPortalId:d}){const p=n&&s||!n&&!s,g=()=>u({direction:n?-1:1}),y={className:t.join(" "),onClick:()=>setTimeout(g,0),"aria-label":(p?"Next":"Previous")+" Item",tabIndex:"0",key:p?"nav-arrow-next":"nav-arrow-back","data-hook":p?"nav-arrow-next":"nav-arrow-back",style:Object.assign(Object.assign({},i),n?r:a)};if(e){const{containerRef:t,isMouseEnter:i,position:r}=e;return o.createElement("button",Object.assign({ref:e=>t.current=e},y),i&&Me.createPortal(o.createElement("span",{style:Object.assign(Object.assign({top:r.y-m/2,left:r.x-h/2},c),{width:h,height:m})},l(n?"left":"right")),window.document.getElementById(d)))}return o.createElement("button",Object.assign({},y),l(n?"left":"right"))}function je(e){const{directionIsLeft:t,next:i,mouseCursorContainerMaxWidth:r,hideLeftArrow:a,hideRightArrow:s,renderArrowSvg:n,containerStyle:l,arrowsBaseClasses:u,navArrowsContainerWidth:c,navArrowsContainerHeight:h}=e,m=a||s;return o.createElement(Ge.bM,{id:e.id,mouseCursorContainerMaxWidth:r,navArrowsContainerWidth:c,navArrowsContainerHeight:h,onNavigate:()=>i({direction:t?-1:1}),direction:t?"left":"right",isTheOnlyArrow:m},((e,i)=>o.createElement("div",{style:{top:i,left:e},className:"follow-mouse-cursor"},o.createElement("div",{className:u.join(" "),style:Object.assign(Object.assign({},l),{top:-h/2,left:-c/2})},n(t?"left":"right")))))}function Ve({hideRightArrow:e,hideLeftArrow:t,mouseCursorEnabled:i,isRTL:r,children:a,navigationArrowPortalId:s}){if(i){const i={justifyContent:t?"flex-end":e?"flex-start":"space-between",flexDirection:r?"row-reverse":"row"};return o.createElement("div",{className:"mouse-cursor",style:Object.assign({},i)},o.createElement("div",{id:s,className:"arrow-portal-container"}),a)}return o.Fragment?o.createElement(o.Fragment,null,a):o.createElement("div",null,a)}function $e(e){if([33,37,38].includes(e))return-1;if([32,34,39,40].includes(e))return 1;throw new Error(`no direction is defined for charCode: ${e}`)}class Ye extends o.Component{constructor(e){super(e),this.autoScrollToNextItem=()=>{if(!(0,Z.wh)()&&(this.props.isInViewport||(0,Z.g4)())){const{options:e}=this.props,t=e.behaviourParams_gallery_layoutDirection===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?-1:1;e.behaviourParams_gallery_horizontal_autoSlide_behaviour===a.Z[l.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].CONTINUOUS?this._next({direction:t,isAutoTrigger:!0,isContinuousScrolling:!0}):e.behaviourParams_gallery_horizontal_autoSlide_behaviour===a.Z[l.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].INTERVAL&&this._next({direction:t,isAutoTrigger:!0,scrollDuration:800})}},this.getCustomNavigationPanel=()=>{var e;return"function"==typeof(null===(e=this.props.customComponents)||void 0===e?void 0:e.EXPERIMENTAL_customNavigationPanelRenderer)&&this.props.customComponents.EXPERIMENTAL_customNavigationPanelRenderer},this.createOrGetCustomNavigationPanelAPI=()=>{const e=this.props.options.behaviourParams_gallery_layoutDirection===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT;return this.navigationPanelAPI||(this.navigationPanelAPI={onGalleryNavigationStart:e=>{this.props.actions.eventsListener(a.Z.events.GALLERY_NAVIGATION_START,e)},next:()=>{this.next({scrollDuration:400,isKeyboardNavigation:!1,isAutoTrigger:!1,avoidIndividualNavigation:!1,isContinuousScrolling:!1,direction:e?-1:1})},previous:()=>{this.next({scrollDuration:400,isKeyboardNavigation:!1,isAutoTrigger:!1,avoidIndividualNavigation:!1,isContinuousScrolling:!1,direction:e?1:-1})},navigateNextEnabled:()=>e?!this.state.hideLeftArrow:!this.state.hideRightArrow,navigatePreviousEnabled:()=>e?!this.state.hideRightArrow:!this.state.hideLeftArrow,currentIndex:()=>this.state.activeIndex,triggerItemClick:(e,{itemIndex:t=this.state.activeIndex}={})=>{const i=this.createGalleryConfig(),r=this.props.galleryStructure.galleryItems[t%this.props.totalItemsCount],o=null==r?void 0:r.renderProps(Object.assign(Object.assign({},i),{visible:!0}));this.props.actions.eventsListener(a.Z.events.ITEM_ACTION_TRIGGERED,o,e)},navigateToIndex:(e,t=400)=>{this.scrollToIndex({itemIdx:e,scrollDuration:t})}}),this.props.actions.eventsListener(a.Z.events.NAVIGATION_API_READY,this.navigationPanelAPI),this.navigationPanelAPI},this.navigationPanelCallbackOnIndexChange=()=>{},this.scrollToThumbnail=this.scrollToThumbnail.bind(this),this.clearAutoSlideshowInterval=this.clearAutoSlideshowInterval.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onAutoSlideShowButtonClick=this.onAutoSlideShowButtonClick.bind(this),this.startAutoSlideshowIfNeeded=this.startAutoSlideshowIfNeeded.bind(this),this.updateAutoSlideShowState=this.updateAutoSlideShowState.bind(this),this.canStartAutoSlideshow=this.canStartAutoSlideshow.bind(this),this.handleSlideshowKeyPress=this.handleSlideshowKeyPress.bind(this),this.onAutoSlideshowAutoPlayKeyPress=this.onAutoSlideshowAutoPlayKeyPress.bind(this),this.setCurrentItemByScroll=this.setCurrentItemByScroll.bind(this),this._setCurrentItemByScroll=s.Z.throttle(this.setCurrentItemByScroll,600).bind(this),this._next=s.Z.throttle(this.nextWithEffects.bind(this),e.isScrollLessGallery?600:400).bind(this),this.state={activeIndex:e.activeIndex||0,isInView:!0,pauseAutoSlideshowClicked:!1,hideLeftArrow:e.options.behaviourParams_gallery_layoutDirection===a.Z[l.Z.behaviourParams.gallery.layoutDirection].LEFT_TO_RIGHT,hideRightArrow:e.options.behaviourParams_gallery_layoutDirection===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,shouldBlockAutoSlideshow:!1,isInFocus:!1},this.lastCurrentItem=void 0,this.shouldCreateSlideShowPlayButton=!1,this.skipFromSlide=Math.round(1.5*this.props.totalItemsCount)}isFirstItem(){return 0===this.state.activeIndex}isScrollStart(e=this.props){return!(e.options.behaviourParams_gallery_horizontal_slideAnimation!==a.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL||!this.scrollElement)&&this.scrollPosition(e)<=1}isScrollEnd(e=this.props){const t=e.options.behaviourParams_gallery_horizontal_slideAnimation;return!e.options.behaviourParams_gallery_horizontal_loop&&t!==a.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].FADE&&t!==a.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].DECK&&(this.isAllItemsLoaded(e)&&this.scrollPositionAtTheAndOfTheGallery(e)>=Math.floor(this.getScrollElementWidth(e)))}isAllItemsLoaded(e=this.props){const{totalItemsCount:t,getVisibleItems:i,galleryStructure:r,container:o,isPrerenderMode:a}=e;return i(r.galleryItems,o,a).length>=t}getScrollElementWidth(e=this.props){const{galleryStructure:t}=e;return t.width-this.props.options.layoutParams_structure_itemSpacing/2}isFirstItemFullyVisible(){return!this.props.options.behaviourParams_gallery_horizontal_loop&&this.isScrollStart()}isLastItemFullyVisible(){return!this.props.options.behaviourParams_gallery_horizontal_loop&&this.isScrollEnd()}isLastItem(){const e=this.state.activeIndex;return!this.props.options.behaviourParams_gallery_horizontal_loop&&e>=this.props.totalItemsCount-1}shouldBlockNext({scrollingUpTheGallery:e}){return e&&this.isLastItem()||!e&&this.isFirstItem()}shouldNotAllowScroll({scrollingUpTheGallery:e}){return e&&this.isLastItemFullyVisible()||!e&&this.isFirstItemFullyVisible()}async nextWithEffects(e){const t=await this.next(e);if(1===this.props.options.layoutParams_groups_groupSize&&this.props.isScrollLessGallery&&t>=this.skipFromSlide){const e=this.skipFromSlide-this.props.totalItemsCount;(e=>{const t=e=>{console.log("toggleScrollLessAnimation: ",e),[".gallery-item-wrapper",".gallery-item-common-info-outer"].forEach((t=>{e?[...document.querySelectorAll(t)].forEach((e=>{var t;null===(t=e.classList)||void 0===t||t.add("disabled-transition")})):[...document.querySelectorAll(t)].forEach((e=>{var t;e.offsetHeight,null===(t=e.classList)||void 0===t||t.remove("disabled-transition")}))}))};setTimeout((()=>{e&&e(),t(!0),t(!1)}),600)})((()=>this.onScrollToItemOrGroup(e,!1)))}}async next({direction:e,isAutoTrigger:t,scrollDuration:i,isKeyboardNavigation:r=!1,isContinuousScrolling:o=!1}){var s;const n=this.props.options.behaviourParams_gallery_layoutDirection===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?e<=-1:e>=1;if(this.shouldBlockNext({scrollingUpTheGallery:n}))return void this.clearAutoSlideshowInterval();e*=this.props.options.behaviourParams_gallery_layoutDirection===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?-1:1;const u=document.activeElement,c=u.className&&u.className.includes("gallery-item-container"),h=!r||!((null===(s=this.props.settings)||void 0===s?void 0:s.isAccessible)&&c);let m=!1;return this.props.options.behaviourParams_gallery_horizontal_slideAnimation!==a.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL&&(i=0,m=!0),this.removeArrowsIfNeeded(),h&&this.props.options.layoutParams_groups_groupSize>1?this.nextGroup({direction:e,scrollDuration:i,isContinuousScrolling:o,scrollingUpTheGallery:n}):(h&&a.Z.isLayout("GRID")(this.props.options)&&this.props.options.layoutParams_structure_numberOfGridRows&&(e*=this.props.options.layoutParams_structure_numberOfGridRows),this.nextItem({direction:e,isAutoTrigger:t,scrollDuration:i,avoidIndividualNavigation:h,ignoreScrollPosition:m,isContinuousScrolling:o,scrollingUpTheGallery:n}))}getNextItemOrGroupToScrollTo(e,t,i,r,o){let a;if(this.isSliding=!0,"nextGroup"!==e&&("nextItem"!==e||i||!r||this.props.options.layoutParams_groups_groupSize>1))"nextItem"===e&&(a=i||!o?this.state.activeIndex:this.setCurrentItemByScroll(),a+=t,this.props.options.behaviourParams_gallery_horizontal_loop||(a=Math.min(this.props.galleryStructure.items.length-1,a),a=Math.max(0,a)));else{const i="nextGroup"===e?"groups":"galleryItems";a=this.getCenteredItemOrGroupIdxByScroll(i)+t}return this.isAutoScrolling=!0,a}async nextItem({direction:e,isAutoTrigger:t,scrollDuration:i,avoidIndividualNavigation:r,ignoreScrollPosition:o,isContinuousScrolling:a,scrollingUpTheGallery:n}){if(this.isSliding)return;let l=this.getNextItemOrGroupToScrollTo("nextItem",e,o,r,t);try{const e=o?0:l;return await this.scrollToItemOrGroup(this.props.actions.scrollToItem,e,a,i,n),1!==this.props.options.layoutParams_groups_groupSize||this.props.isScrollLessGallery||l>=this.skipFromSlide&&(l=s.Z.inRange(l,this.props.totalItemsCount),await this.props.actions.scrollToItem(l)),this.onScrollToItemOrGroup(l,a),o&&(this.props.getMoreItemsIfNeeded(this.props.galleryStructure.galleryItems[l].offset.left),this.props.setGotFirstScrollIfNeeded()),l}catch(e){this.onThrowScrollError("Cannot proceed to the next Item",e)}}async nextGroup({direction:e,scrollDuration:t,isContinuousScrolling:i=!1,scrollingUpTheGallery:r}){if(this.isSliding)return;const o=this.getNextItemOrGroupToScrollTo("nextGroup",e);try{await this.scrollToItemOrGroup(this.props.actions.scrollToGroup,o,i,t,r);const a=this.getCenteredItemOrGroupIdxByScroll("galleryItems")+e;this.onScrollToItemOrGroup(a,i)}catch(e){this.onThrowScrollError("Cannot proceed to the next Group",e)}}async scrollToItemOrGroup(e,t,i,r,o){const a=!this.shouldNotAllowScroll({scrollingUpTheGallery:o}),{scrollMarginCorrection:s,_scrollDuration:n}=this.getScrollParameters(r);a&&await e(t,!1,!0,n,s,i)}onThrowScrollError(e,t){console.error(e,t),this.clearAutoSlideshowInterval()}onScrollToItemOrGroup(e,t){s.Z.setStateAndLog(this,"Next Item",{activeIndex:e},(()=>{this.onCurrentItemChanged(),this.isSliding=!1,t&&this.startAutoSlideshowIfNeeded(this.props.options)}))}getScrollParameters(e){var t;return{scrollMarginCorrection:this.getStyles().margin||0,_scrollDuration:null!==(t=null!=e?e:this.props.options.behaviourParams_gallery_horizontal_navigationDuration)&&void 0!==t?t:400}}onCurrentItemChanged(e=this.props){if(this.lastCurrentItem!==this.state.activeIndex){this.lastCurrentItem=this.state.activeIndex;const e=this.props.galleryStructure.galleryItems[this.state.activeIndex],t=this.props.items[this.state.activeIndex];t&&(t.idx=this.state.activeIndex,t.resizedImageSrc=e.createUrl(a.Z.urlSizes.RESIZED,a.Z.urlTypes.HIGH_RES),this.props.actions.eventsListener(a.Z.events.CURRENT_ITEM_CHANGED,t)),this.navigationPanelCallbackOnIndexChange(this.state.activeIndex)}this.removeArrowsIfNeeded(e)}clearAutoSlideshowInterval(){clearInterval(this.autoSlideshowInterval)}canStartAutoSlideshow(e){return e.behaviourParams_gallery_horizontal_autoSlide_behaviour!==a.Z[l.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].OFF&&!this.state.shouldBlockAutoSlideshow}startAutoSlideshowIfNeeded(e){this.clearAutoSlideshowInterval(),this.canStartAutoSlideshow(e)&&(e.behaviourParams_gallery_horizontal_autoSlide_behaviour===a.Z[l.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].CONTINUOUS&&e.behaviourParams_gallery_horizontal_autoSlide_speed>0?this.autoScrollToNextItem():e.behaviourParams_gallery_horizontal_autoSlide_behaviour===a.Z[l.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].INTERVAL&&e.behaviourParams_gallery_horizontal_autoSlide_interval>0&&(this.autoSlideshowInterval=setInterval(this.autoScrollToNextItem,1e3*e.behaviourParams_gallery_horizontal_autoSlide_interval)))}getFirstIdx(e){const{galleryItems:t}=this.props.galleryStructure,i=t[e].itemId;return t.find((e=>e.itemId===i)).idx}scrollToThumbnail(e,t){this.props.actions.eventsListener(a.Z.events.THUMBNAIL_CLICKED,this.props);const i=this.state.activeIndex,r=i+(this.getFirstIdx(e)-this.getFirstIdx(i));this.scrollToIndex({itemIdx:r,scrollDuration:t})}scrollToIndex({itemIdx:e,scrollDuration:t}){this.props.setGotFirstScrollIfNeeded();const i=this.props.options.behaviourParams_gallery_layoutDirection===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?this.state.activeIndex-e:e-this.state.activeIndex;return this.next({direction:i,isAutoTrigger:!1,scrollDuration:t,isKeyboardNavigation:!1})}handleSlideshowKeyPress(e){e.stopPropagation();const t=e.charCode||e.keyCode;if(!1===[32,33,34,37,38,39,40,27].includes(t))return!0;e.preventDefault();const i=C.Z.document.activeElement.getAttribute("data-idx"),r=i&&this.props.totalItemsCount-1===Number(i)&&Number(i)===this.state.activeIndex;if(40===t&&r||27===t){const e={27:this.props.galleryContainerRef,40:this.props.outOfViewComponent}[t];s.Z.focusGalleryElement(e)}else this._next({direction:$e(t),isKeyboardNavigation:!0});return!1}getCenteredItemOrGroupIdxByScroll(e){const t=this.props.galleryStructure[e];let i;const r=this.scrollPositionAtTheMiddleOfTheGallery();if(0===r)i=0;else for(let o,a=0;o=t[a];a++){if(("galleryItems"===e?o.offset.left:o.left)>r){i=a-1;break}}return i>=0||(i=t.length-1),i}setCurrentItemByScroll(){if(s.Z.isVerbose()&&console.log("Setting current Idx by scroll",this.isAutoScrolling),this.isAutoScrolling)return void(this.isAutoScrolling=!1);if("true"===(this.scrollElement&&this.scrollElement.getAttribute("data-scrolling")))return void this.clearAutoSlideshowInterval();this.startAutoSlideshowIfNeeded(this.props.options);const e=this.getCenteredItemOrGroupIdxByScroll("galleryItems");return s.Z.isUndefined(e)||s.Z.setStateAndLog(this,"Set Current Item",{activeIndex:e},(()=>{this.onCurrentItemChanged()})),e}createDebugMsg(){return o.createElement(R,Object.assign({},this.props.debug))}createNavArrows(){const{container:e,options:t,customComponents:i,id:r}=this.props,{hideLeftArrow:a,hideRightArrow:s}=this.state;return o.createElement(Ue,{container:e,options:t,customNavArrowsRenderer:i.customNavArrowsRenderer,hideLeftArrow:a,hideRightArrow:s,next:this._next,id:r})}getBufferedItems(e,t){var i;const{state:r,props:o}=this,{options:s,virtualizationSettings:n,getVisibleItems:u,isPrerenderMode:c}=o,{activeIndex:h}=r;return function({groups:e,options:t,virtualizationSettings:i,galleryWidth:r,galleryHeight:o,activeIndex:s}){const{enabled:n=!1,forwardItemMargin:u=3,backwardItemMargin:c=3,forwardItemScrollMargin:h=10,backwardItemScrollMargin:m=10}=i||{},d=t[l.Z.layoutParams.structure.scrollDirection]===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL,p=!d||t[l.Z.behaviourParams.gallery.horizontal.slideAnimation]===a.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL;if(!n)return e.map((e=>({group:e,shouldRender:!0})));const g=d?r:o,y=d?"width":"height",_=p?h:u,v=p?m:c,f=e.findIndex((e=>{var t,i;const{items:r}=e,o=r[0],a=r[r.length-1],n=null!==(t=o.idx)&&void 0!==t?t:o.fullscreenIdx,l=null!==(i=a.idx)&&void 0!==i?i:a.fullscreenIdx;return n<=s&&l>=s})),P=e[f],b=P[y]/g;let I=b,S=b;const E=[P];for(let t=1;I<_||S({group:e,shouldRender:E.includes(e)})))}({groups:u(e,t,c),activeIndex:h,galleryWidth:(null===(i=this.props.galleryContainerRef)||void 0===i?void 0:i.clientWidth)||t.galleryWidth||0,options:s,virtualizationSettings:n})}createGalleryConfig(){return{scrollingElement:this.props.scrollingElement,scroll:this.props.scroll,container:this.props.container,options:this.props.options,settings:this.props.settings,activeIndex:this.state.activeIndex,customComponents:this.props.customComponents,galleryId:this.props.id,gotFirstScrollEvent:this.props.gotFirstScrollEvent,playingVideoIdx:this.props.playingVideoIdx,playing3DIdx:this.props.playing3DIdx,noFollowForSEO:this.props.noFollowForSEO,isPrerenderMode:this.props.isPrerenderMode,firstUserInteractionExecuted:this.props.firstUserInteractionExecuted,enableExperimentalFeatures:this.props.enableExperimentalFeatures,actions:{eventsListener:this.props.actions.eventsListener},totalItemsCount:this.props.totalItemsCount,totalWidth:this.props.galleryStructure.width}}createLayout(){const{container:e,galleryStructure:t}=this.props,i=this.createGalleryConfig(),r=t=>{const r=!!t.galleryGroups.length&&this.getBufferedItems(t.galleryGroups,e);if(r)return r.map((({group:e,shouldRender:t})=>!!e.rendered&&o.createElement(_e,Object.assign(Object.assign({disableItemFocus:this.props.disableItemFocus,activeIndex:this.state.activeIndex,slideAnimation:this.props.options.behaviourParams_gallery_horizontal_slideAnimation,allowLoop:this.props.options.behaviourParams_gallery_horizontal_loop&&this.props.galleryStructure.width>this.props.container.width},e.renderProps(i)),{ariaHidden:e.idx>this.skipFromSlide,shouldRenderEmpty:!t,container:this.props.container,key:e.idx}))))};return t.columns.map(((e,t)=>{const i={width:this.props.isPrerenderMode?"100%":e.width,height:this.getDimensions().height,overflowY:this.props.isPrerenderMode?"visible":"hidden"};return o.createElement("div",{"data-hook":"gallery-column",id:`gallery-horizontal-scroll-${this.props.id}`,className:`gallery-horizontal-scroll gallery-column hide-scrollbars ${this.props.options.behaviourParams_gallery_layoutDirection===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?" rtl ":" ltr "} ${this.props.options.behaviourParams_gallery_horizontal_enableScrollSnap?" scroll-snap ":""} `,key:"column"+t,style:i},o.createElement("div",{className:"gallery-horizontal-scroll-inner"},r(e)))}))}getDimensions(){const e=this.props.container.galleryHeight;return this.props.isPrerenderMode?{width:"100%",height:e}:{height:e,width:this.props.container.galleryWidth}}createGallery(){var e;const t=this.props.options.layoutParams_structure_scrollDirection===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&this.props.options.layoutParams_navigationArrows_position===a.Z[l.Z.layoutParams.navigationArrows.position].OUTSIDE_GALLERY?{overflow:"visible",left:this.props.options.layoutParams_navigationArrows_size+40+this.props.options.layoutParams_structure_itemSpacing/2}:{},i=this.getDimensions(),r=Object.assign(Object.assign(Object.assign({},i),t),{display:"flex",justifyContent:"space-between"});return o.createElement("div",{id:this.props.galleryContainerId,className:"pro-gallery inline-styles one-row hide-scrollbars "+(this.props.options.behaviourParams_gallery_horizontal_blockScroll?"":" slider ")+((null===(e=this.props.settings)||void 0===e?void 0:e.isAccessible)?" accessible ":"")+(this.props.options.behaviourParams_gallery_layoutDirection===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?" rtl ":" ltr "),style:r},this.createDebugMsg(),this.createLayout(),this.createAutoSlideShowPlayButton(),this.createSlideShowNumbers(),Be({options:this.props.options,container:this.props.container,isPrerenderMode:this.props.isPrerenderMode,galleryStructure:this.props.galleryStructure,customNavArrowsRenderer:this.props.customComponents.customNavArrowsRenderer})&&this.createNavArrows())}onAutoSlideShowButtonClick(){this.setState({pauseAutoSlideshowClicked:!this.state.pauseAutoSlideshowClicked},(()=>{this.updateAutoSlideShowState(this.props)}))}isFullWidthGallery(){return this.props.container.galleryWidth>=s.Z.getWindowWidth()-10}onAutoSlideshowAutoPlayKeyPress(e){switch(e.keyCode||e.charCode){case 32:case 13:return e.preventDefault(),e.stopPropagation(),this.onAutoSlideShowButtonClick(),!1;default:return!0}}calcSlideshowCounterWidth(){const{totalItemsCount:e}=this.props;return e<10?26:e<100?43:e<1e3?60:76}createAutoSlideShowPlayButton(){if(!this.shouldCreateSlideShowPlayButton)return!1;const e=this.props.options.behaviourParams_gallery_horizontal_slideshowInfo_buttonsAlignment,t=this.props.options.layoutParams_structure_itemSpacing/2+(this.isFullWidthGallery()?50:0),i=e===a.Z[l.Z.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment].RIGHT?{left:t/2+"px"}:{right:`${t/2+(this.props.options.behaviourParams_gallery_horizontal_slideshowInfo_enableCounter?this.calcSlideshowCounterWidth():0)}px`};return o.createElement("button",{className:"auto-slideshow-button",onClick:()=>{this.onAutoSlideShowButtonClick()},onKeyDown:this.onAutoSlideshowAutoPlayKeyPress,"data-hook":"auto-slideshow-button",title:"slideshow auto play","aria-pressed":this.state.pauseAutoSlideshowClicked,tabIndex:0,style:Object.assign({top:`calc(100% - ${this.props.options.layoutParams_info_height}px + 3px)`},i)},this.state.pauseAutoSlideshowClicked?o.createElement(Pe,{width:"10px",height:"100%"}):o.createElement(Ie,{width:"10px",height:"100%"}))}createSlideShowNumbers(){if(!this.props.options.behaviourParams_gallery_horizontal_slideshowInfo_enableCounter)return!1;const{totalItemsCount:e}=this.props,t=this.props.options.behaviourParams_gallery_horizontal_slideshowInfo_buttonsAlignment,i=this.props.options.layoutParams_structure_itemSpacing/2+(this.isFullWidthGallery()?50:0),r=this.shouldCreateSlideShowPlayButton?i/2+25:i/2,s=t===a.Z[l.Z.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment].RIGHT?{left:`${r}px`}:{right:i/2+"px"};return o.createElement("div",{className:"auto-slideshow-counter","data-hook":"auto-slideshow-counter",style:Object.assign({top:`calc(100% - ${this.props.options.layoutParams_info_height}px + 3px)`},s)},o.createElement("div",null,this.state.activeIndex%e+1+"/"+e))}getNavigationPanelArray(){if(!this.props.options.layoutParams_thumbnails_enable)return[!1,!1];const e=this.getCustomNavigationPanel();let t;if(e){const{galleryHeight:i,galleryWidth:r,height:a,width:s}=this.props.container,n=(({galleryHeight:e,galleryWidth:t,height:i,width:r,galleryThumbnailsAlignment:o,navigationPanelPosition:a})=>Object.assign(Object.assign(Object.assign({},Ne({galleryHeight:e,galleryWidth:t,height:i,width:r,galleryThumbnailsAlignment:o,navigationPanelPosition:a})),Re({galleryThumbnailsAlignment:o,navigationPanelPosition:a})),{overflow:"hidden",float:"left"}))({galleryHeight:i,galleryWidth:r,height:a,width:s,galleryThumbnailsAlignment:this.props.options.layoutParams_thumbnails_alignment,navigationPanelPosition:this.props.options.layoutParams_thumbnails_position});t=t=>o.createElement("div",{className:"custom-navigation-panel",style:n},e(Object.assign(Object.assign({},this.props),{domOrder:t,activeIndex:this.state.activeIndex,navigationToIdxCB:this.scrollToThumbnail,navigationPanelAPI:this.createOrGetCustomNavigationPanelAPI()})))}else t=e=>o.createElement(De,Object.assign({},this.props,{domOrder:e,activeIndex:this.state.activeIndex,navigationToIdxCB:this.scrollToThumbnail}));const i=[];if(this.props.options.layoutParams_thumbnails_position===a.Z[l.Z.layoutParams.thumbnails.position].ON_GALLERY)return i[0]=!1,i[1]=t("after"),i;if(this.props.isPrerenderMode)return i[0]=t("before"),i[1]=t("after"),i;switch(this.props.options.layoutParams_thumbnails_alignment){case a.Z[l.Z.layoutParams.thumbnails.alignment].TOP:case a.Z[l.Z.layoutParams.thumbnails.alignment].LEFT:i[0]=t("before"),i[1]=!1;break;case a.Z[l.Z.layoutParams.thumbnails.alignment].RIGHT:case a.Z[l.Z.layoutParams.thumbnails.alignment].BOTTOM:i[0]=!1,i[1]=t("after")}return i}getClassNames(){let e="pro-gallery-parent-container";return a.Z.isLayout("SLIDER")(this.props.options)?e+=" gallery-slider":this.props.options.layoutParams_thumbnails_enable?e+=" gallery-thumbnails":a.Z.isLayout("COLUMN")(this.props.options)&&(e+=" gallery-columns"),e}getStyles(){return{margin:-1*(this.props.options.layoutParams_structure_itemSpacing/2-this.props.options.layoutParams_structure_gallerySpacing),width:this.props.container.width,height:this.props.container.height}}getScrollPosition(e=this.props){return this.scrollElement?this.scrollPosition(e):0}scrollPositionAtTheMiddleOfTheGallery(){return this.getScrollPosition()+this.props.container.galleryWidth/2}scrollPositionAtTheAndOfTheGallery(e=this.props){return this.getScrollPosition(e)+e.container.galleryWidth}scrollPosition(e=this.props){return(e.options.behaviourParams_gallery_layoutDirection===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?-1:1)*this.scrollElement.scrollLeft}updateAutoSlideShowState(e=this.props){const{isGalleryInHover:t,options:i,settings:r}=e,{pauseAutoSlideshowClicked:o,shouldBlockAutoSlideshow:a,isInView:s,isInFocus:n}=this.state,l=t&&i.behaviourParams_gallery_horizontal_autoSlide_pauseOnHover,u=n&&(null==r?void 0:r.isAccessible);let c=!s||o||u||l;a!==c&&this.setState({shouldBlockAutoSlideshow:c},(()=>{this.startAutoSlideshowIfNeeded(i)}))}onFocus(){this.setState({isInFocus:!0},(()=>{this.updateAutoSlideShowState(this.props)}))}onBlur(){this.setState({isInFocus:!1},(()=>{this.updateAutoSlideShowState(this.props)}))}UNSAFE_componentWillReceiveProps(e){var t,i;const r=e.isInViewport&&(null===(t=e.isInDisplay)||void 0===t||t);r!==(this.props.isInViewport&&(null===(i=this.props.isInDisplay)||void 0===i||i))?this.setState({isInView:r},(()=>{this.updateAutoSlideShowState(e)})):this.props.isGalleryInHover!==e.isGalleryInHover?this.updateAutoSlideShowState(e):this.props.container.scrollBase!=e.container.scrollBase&&this.forceUpdate((()=>{this.startAutoSlideshowIfNeeded(e.options)})),this.props.activeIndex!==e.activeIndex&&s.Z.setStateAndLog(this,"Next Item",{activeIndex:e.activeIndex},(()=>{this.onCurrentItemChanged(e)})),this.props.totalItemsCount===e.totalItemsCount&&this.props.container.galleryHeight===e.container.galleryHeight&&this.props.container.galleryWidth===e.container.galleryWidth&&this.state.activeIndex===e.activeIndex||this.removeArrowsIfNeeded(e),((0,Z.wh)()||(0,Z.g4)())&&(this.props.options.behaviourParams_gallery_horizontal_autoSlide_behaviour!==a.Z[l.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].OFF!==e.options.behaviourParams_gallery_horizontal_autoSlide_behaviour===a.Z[l.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].OFF&&this.props.options.behaviourParams_gallery_horizontal_autoSlide_interval===e.options.behaviourParams_gallery_horizontal_autoSlide_interval||this.startAutoSlideshowIfNeeded(e.options)),this.shouldCreateSlideShowPlayButton=e.options.behaviourParams_gallery_horizontal_autoSlide_behaviour!==a.Z[l.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].OFF&&e.options.behaviourParams_gallery_horizontal_slideshowInfo_enablePlayButton}removeArrowsIfNeeded(e=this.props){const t=e.options.behaviourParams_gallery_layoutDirection===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,{hideLeftArrow:i,hideRightArrow:r}=this.state,o=this.isScrollStart(e),s=this.isFirstItem(),n=this.isScrollEnd(e),u=this.isLastItem(),c=o||s,h=n||u,m=!t&&c||t&&h,d=t&&c||!t&&h;(!!m!=!!i||!!d!=!!r)&&this.setState({hideLeftArrow:!!m,hideRightArrow:!!d})}componentDidMount(){this.scrollElement=C.Z.document.querySelector(`#pro-gallery-${this.props.id} #gallery-horizontal-scroll-${this.props.id}`),this.scrollElement&&this.scrollElement.addEventListener("scroll",this._setCurrentItemByScroll),this.state.activeIndex>0?(this.props.actions.scrollToItem(this.state.activeIndex),this.onCurrentItemChanged()):this.setCurrentItemByScroll(),this.startAutoSlideshowIfNeeded(this.props.options),this.createOrGetCustomNavigationPanelAPI()}componentWillUnmount(){this.scrollElement&&this.scrollElement.removeEventListener("scroll",this._setCurrentItemByScroll)}render(){s.Z.isVerbose()&&(console.count("galleryView render"),console.count("Rendering Gallery count"),console.time("Rendering Gallery took "));const e=this.createGallery(),t=this.getNavigationPanelArray();return s.Z.isVerbose()&&console.timeEnd("Rendering Gallery took "),o.createElement("div",Object.assign({className:this.getClassNames(),style:this.getStyles(),onKeyDown:this.handleSlideshowKeyPress},s.Z.getAriaAttributes({proGalleryRole:this.props.proGalleryRole,proGalleryRegionLabel:this.props.proGalleryRegionLabel}),{onFocus:this.onFocus,onBlur:this.onBlur}),t[0],e,t[1])}}var Ke=Ye;class Xe{constructor(){this.promise=new Promise(((e,t)=>{this.reject=(...e)=>{this.isPending=!1,t(...e)},this.resolve=(...t)=>{this.isPending=!1,e(...t)},this.isPending=!0}))}}function qe({scroller:e,from:t,to:i,duration:r,isRTL:o,slideTransition:a,isContinuousScrolling:s,autoSlideshowContinuousSpeed:n}){let l=i-t;if(0===l)return new Promise((e=>e(i)));s&&(r=Math.abs(l)/n*1e3);const u=e.firstChild;e.setAttribute("data-scrolling","true"),Object.assign(e.style,{"scroll-snap-type":"none"}),Object.assign(u.style,{transition:`transform ${r}ms ${a}`,"-webkit-transition":`transform ${r}ms ${a}`},{transform:`translateX(${-1*l}px)`});const c=new CustomEvent("scrollTransition",{detail:l/10}),h=setInterval((()=>{e.dispatchEvent(c)}),Math.round(r/10));let m=new Xe;const d=setTimeout((()=>{clearInterval(h),Object.assign(u.style,{transition:"none","-webkit-transition":"none"},{transform:"translateX(0px)"}),e.style.removeProperty("scroll-snap-type"),e.scrollLeft=i,e.setAttribute("data-scrolling",""),m.resolve(i)}),r);return{scrollDeffered:m,scroller:e,from:t,to:i,duration:r,isRTL:o,slideTransition:a,isContinuousScrolling:s,autoSlideshowContinuousSpeed:n,currentScrollEndTimeout:d}}function Je({scroller:e,from:t,isRTL:i,currentScrollEndTimeout:r,scrollDeffered:o}){clearTimeout(r);const a=e.firstChild;let s=getComputedStyle(a).getPropertyValue("transform");var n=new DOMMatrix(s);(function({scroller:e,at:t,isRTL:i}){Object.assign(e.style,{"scroll-snap-type":"none"});let r=new Xe;Object.assign(e.firstChild.style,{transition:"none","-webkit-transition":"none"},{transform:"translateX(0px)"}),e.scrollLeft=t,r.resolve(t)})({scroller:e,at:t-=Math.round(parseInt(n.m41,10)),isRTL:i}),o.resolve(t)}class Qe extends o.Component{constructor(e){super(),this.state={scrollTop:0,scrollLeft:0},this.debouncedOnScroll=s.Z.debounce(e.onScroll,50)}removeScrollListener(){if(this.scrollEventListenerSet){const e=this.props.scrollingElement;try{e.vertical().removeEventListener("scroll",this.onVerticalScroll)}catch(e){}try{const{scrollDirection:t}=this.props;t===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&e.horizontal().removeEventListener("scroll",this.onHorizontalScroll)}catch(e){}this.scrollEventListenerSet=!1}}initScrollListener(){var e,t;this.scrollEventListenerSet&&this.removeScrollListener(),this.scrollEventListenerSet=!0;const i=this.props.scrollingElement;if(this.onHorizontalScrollTransition=({detail:e})=>{const t=Math.round(e);t>=0&&this.props.galleryScrollDirection===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&this.setState({scrollLeft:this.state.scrollLeft+t})},this.onHorizontalScroll=e=>{var t,i;this.props.setGotFirstScrollIfNeeded();const r=e.currentTarget||e.target||e;let o=r&&(null!==(i=null!==(t=r.scrollX)&&void 0!==t?t:r.scrollLeft)&&void 0!==i?i:r.x);this.props.isRTL&&(o=Math.abs(o)),o>=0&&this.props.galleryScrollDirection===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&(this.setState({scrollTop:o,scrollLeft:o}),this.props.getMoreItemsIfNeeded(o),this.debouncedOnScroll({left:o}))},this.props.galleryScrollDirection===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL)try{null===(e=null==i?void 0:i.horizontal())||void 0===e||e.addEventListener("scroll",this.onHorizontalScroll),null===(t=null==i?void 0:i.horizontal())||void 0===t||t.addEventListener("scrollTransition",this.onHorizontalScrollTransition)}catch(e){console.error(e)}this.onVerticalScroll=e=>{this.props.setGotFirstScrollIfNeeded();const t=e.currentTarget||e.target||e,i=t&&(t.scrollY||t.scrollTop||t.y);i>=0&&(this.props.galleryScrollDirection===a.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL&&(this.setState({scrollTop:i}),this.props.getMoreItemsIfNeeded(i)),this.debouncedOnScroll({top:i}))};try{i.vertical().addEventListener("scroll",this.onVerticalScroll)}catch(e){console.error(e)}}componentWillUnmount(){this.removeScrollListener()}componentDidMount(){this.initScrollListener()}UNSAFE_componentWillReceiveProps(e){let t=!1;for(const i of["id","scrollDirection","isRTL","totalWidth","scrollBase","scrollingElement"])if(e[i]!==this.props[i]){t=!0;break}t&&this.initScrollListener()}render(){const e=this.props.galleryScrollDirection===a.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL&&this.props.scrollBase>0?this.props.scrollBase:0,t=this.state.scrollTop-e,{id:i}=this.props;return o.createElement("div",{key:"css-scroll-indicator","data-hook":"css-scroll-indicator","data-scroll-base":e,"data-scroll-top":this.state.scrollTop,className:q.calcScrollClasses(i,t),style:{display:"none"}})}}const et=(e="",t,i)=>{const r=i[l.Z.behaviourParams.gallery.layoutDirection]===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT;let o="";return t.forEach((t=>{const i=(({galleryId:e,item:t})=>`#pro-gallery-${e} #${q.getSellectorDomId(t)}`)({galleryId:e,item:t}),a=(e=>({top:e.offset.top,left:e.offset.left,width:e.width+e.infoWidth,height:e.height+e.infoHeight,innerHeight:e.height}))(t),s=`top:${a.top}px;`,n=r?`right:${a.left}px;left:auto;`:`left:${a.left}px;`,l=`width:${a.width}px;`,u=`height:${a.height}px;`;o+=`${i} {${s}${n}${l}${u}}`})),o};var tt=class{constructor(e){this.config=e,this.scrollHelpers=[],this.stop=e=>{for(const t of this.scrollHelpers)t.findItem(e)&&t.stop(e)},this.initializePlayState=()=>{for(const e of this.scrollHelpers)e.initializePlayState()},this.onScroll=({top:e,left:t})=>{this.scrollHelpers.length||(this.top=e||this.top,this.left=t||this.left);for(const i of this.scrollHelpers)i.onScroll({top:e,left:t})},this.handleEvent=e=>{for(const t of this.scrollHelpers)t.handleEvent(e)},this.updateGalleryStructure=e=>{if(!e.isSSR){for(const t of this.scrollHelpers)t.updateGalleryStructure(e);this.scrollHelperPromise?this.latestGalleryStructure=e:(this.latestGalleryStructure=e,(0,Z.wh)()||e.galleryStructure.galleryItems.some((e=>this.config.some((t=>t.supportedItemsFilter(e)))))&&(this.scrollHelperPromise=i.e(60731).then(i.bind(i,63501)).then((({default:e})=>{for(const t of this.config)this.scrollHelpers.push(new e(t.onSetPlayingIdx,t.supportedItemsFilter,t.getPlayTrigger));this.updateGalleryStructure(this.latestGalleryStructure),this.onScroll({top:this.top,left:this.left})})).catch((e=>{console.error("Failed to load videoScrollHelper. error: "+e)}))))}},this.left=0,this.top=0}};var it=function(e,t,i){const r=i[e];let o;const a=(e,t,r)=>{let o,a,s,n=null,l={};return i.forEach((i=>{o=i.offset.top+i.height/2,a=i.offset.left+i.width/2,s=Math.sqrt(Math.pow(o-t,2)+Math.pow(a-e,2)),(null===n||s>0&&srir>t));break;default:o=a(r.offset.right,r.offset.top+r.height/2,((e,t,i)=>i>e))}return o.idx>=0?o.idx:(console.warn("Could not find offset for itemIdx",e,t),e)};class rt extends o.Component{constructor(e){super(e),this.updateVisibility=()=>{const e=function({container:e,scrollTop:t}){try{const i=e.scrollBaset;return i&&r}catch(e){return console.warn("Could not calculate viewport",e),!0}}({container:this.props.container,scrollTop:this.state.scrollPosition.top});this.state.isInViewport!==e&&this.setState({isInViewport:e})},this.setVisibilityIfNeeded=(e,t)=>{const{container:i}=this.props,{scrollPosition:r}=this.state;i.scrollBase===e.container.scrollBase&&r.top===t.scrollPosition.top||this.updateVisibility()},this.findNeighborItem=(e,t)=>it(e,t,this.state.structure.items),s.Z.isVerbose()&&console.count("[OOISSR] galleryContainer constructor",C.Z.isMock),this.getMoreItemsIfNeeded=this.getMoreItemsIfNeeded.bind(this),this.setGotFirstScrollIfNeeded=this.setGotFirstScrollIfNeeded.bind(this),this.toggleLoadMoreItems=this.toggleLoadMoreItems.bind(this),this.scrollToItem=this.scrollToItem.bind(this),this.scrollToGroup=this.scrollToGroup.bind(this),this.eventsListener=this.eventsListener.bind(this),this.onGalleryScroll=this.onGalleryScroll.bind(this),this.getVisibleItems=this.getVisibleItems.bind(this),this.findNeighborItem=this.findNeighborItem.bind(this),this.setCurrentSlideshowViewIdx=this.setCurrentSlideshowViewIdx.bind(this),this.getIsScrollLessGallery=this.getIsScrollLessGallery.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.mediaScrollHelper=new tt([{getPlayTrigger:e=>e.behaviourParams_item_video_playTrigger,onSetPlayingIdx:e=>this.setState({playingVideoIdx:e}),supportedItemsFilter:e=>"video"===e.type||"image"===e.type&&(e.id.includes("_placeholder")||e.isVideoPlaceholder)},{getPlayTrigger:e=>e.behaviourParams_item_threeDimensionalScene_playTrigger,onSetPlayingIdx:e=>this.setState({playing3DIdx:e}),supportedItemsFilter:e=>"3d"===e.type}]);const t={scrollPosition:{top:0,left:0},showMoreClickedAtLeastOnce:!1,initialGalleryHeight:void 0,needToHandleShowMoreClick:!1,gotFirstScrollEvent:e.activeIndex>=0,playingVideoIdx:-1,playing3DIdx:-1,viewComponent:null,firstUserInteractionExecuted:!1,isInHover:!1,isInViewport:!0,scrollingElement:this.getScrollingElement()};this.state=t,this.layoutCss=[],this.initialGalleryState={};try{const t=this.propsToState(e);Object.keys(t).length>0&&(this.initialGalleryState=t)}catch(e){console.warn("Cannot create initial state from props",e)}this.state=Object.assign(Object.assign({},t),this.initialGalleryState)}initializeScrollPosition(){if(this.props.activeIndex>0){this.scrollToItem(this.props.activeIndex,!1,!0,0);const e=this.galleryStructure.items[this.props.activeIndex];this.onGalleryScroll(e.offset)}else this.onGalleryScroll({top:C.Z.scrollY})}isScrollingUnavailable(e,t){return this.isVerticalGallery()?e<=t+300:this.state.structure.width{if(this.state.items.length>e){const{body:e,documentElement:t}=document,i=C.Z.innerHeight,r=Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight);this.getMoreItemsIfScrollIsDisabled(r,i)}}))}}componentDidMount(){C.h.stopUsingMock();const{body:e,documentElement:t}=document,i=C.Z.innerHeight,r=Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight);this.initializeScrollPosition(),this.getMoreItemsIfScrollIsDisabled(r,i),this.handleNewGalleryStructure(),this.eventsListener(a.Z.events.APP_LOADED,{}),this.mediaScrollHelper.initializePlayState();try{"function"==typeof C.Z.CustomEvent?this.currentHoverChangeEvent=new CustomEvent("current_hover_change"):(this.currentHoverChangeEvent=C.Z.document.createEvent("CustomEvent"),this.currentHoverChangeEvent.initCustomEvent("current_hover_change",!1,!1,null))}catch(e){console.error("could not create 'current_hover_change' customEvent. Error =",e)}this.props.id&&(this.currentHoverChangeEvent.galleryId=this.props.id)}UNSAFE_componentWillReceiveProps(e){!this.currentHoverChangeEvent.galleryId&&e.id&&(this.currentHoverChangeEvent.galleryId=e.id),this.props.activeIndex!==e.activeIndex&&e.activeIndex!==this.currentSlideshowViewIdx&&this.scrollToItem(e.activeIndex,!1,!0,0);const t=()=>{const t=this.propsToState(e);Object.keys(t).length>0&&this.setState(t,this.handleNewGalleryStructure)},i=e=>{const{id:t,options:i,container:r,items:o,isInDisplay:a,isPrerenderMode:s}=e;return{id:t,options:i,container:r,items:o,isInDisplay:a,isPrerenderMode:s}};this.reCreateGalleryTimer&&clearTimeout(this.reCreateGalleryTimer);let r=!0;try{const t=i(this.props),o=i(e);r=JSON.stringify(t)!==JSON.stringify(o),s.Z.isVerbose()&&r&&console.log("New props arrived",s.Z.printableObjectsDiff(t,o))}catch(e){console.error("Cannot compare props",e)}r&&(t(),this.props.isInDisplay!==e.isInDisplay&&this.handleNavigation(e.isInDisplay))}handleNavigation(e){e||this.mediaScrollHelper.stop()}handleNewGalleryStructure(){const{container:e,needToHandleShowMoreClick:t,initialGalleryHeight:i}=this.state,r="vertical"===this.containerInfiniteGrowthDirection();let o=!1;if(!r&&t){const t=138;o=e.height+(i-t)}const n=this.props.options,u={numOfItems:this.state.items.length,container:e,options:n,layoutHeight:o||this.props.container.height,layoutItems:this.props.structure.items,isInfinite:r,isFixedHorizontlaGalleryRatio:"horizontal"===this.containerInfiniteGrowthDirection()&&this.state.options[l.Z.layoutParams.structure.galleryRatio.value]>0,updatedHeight:o};s.Z.isVerbose()&&console.log("handleNewGalleryStructure",u),this.eventsListener(a.Z.events.GALLERY_CHANGE,u),t&&this.setState({needToHandleShowMoreClick:!1})}isVerticalGallery(){return this.state.options[l.Z.layoutParams.structure.scrollDirection]===a.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL}getIsScrollLessGallery(e){const t=e[l.Z.behaviourParams.gallery.horizontal.slideAnimation];return e[l.Z.layoutParams.structure.scrollDirection]===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&t!==a.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL}getVisibleItems(e,t,i){var r,o;const{gotFirstScrollEvent:a}=this.state,s=(null===(o=null===(r=this.state)||void 0===r?void 0:r.scrollPosition)||void 0===o?void 0:o.top)||0,{galleryHeight:n,scrollBase:l,galleryWidth:u}=t;if(i||(0,Z.Vg)()||(0,Z.wh)()||a||s>0||(0,Z.g4)()||this.props.activeIndex>0)return e;let c=e;try{const t=C.Z.innerHeight,i=this.isVerticalGallery()&&"vertical"===this.containerInfiniteGrowthDirection()?1/0:l+n,r=s+t,o=Math.min(i,r)-l;c=o<0?[]:this.isVerticalGallery()?e.filter((e=>e.offset.tope.left<=u+20)),c.length<2&&c.lengththis.props.scrollingElement:()=>C.Z,horizontal:()=>C.Z.document.querySelector(`#pro-gallery-${this.props.id} #gallery-horizontal-scroll-${this.props.id}`)}}scrollToItem(e,t,i,r=0,o,n=!1){if(e>=0){if(this.state.gotFirstScrollEvent||this.setState({gotFirstScrollEvent:!0}),this.getIsScrollLessGallery(this.state.options))return;const u=this.state.scrollingElement,c=u.horizontal();try{const h={scrollMarginCorrection:o,isRTL:this.state.options[l.Z.behaviourParams.gallery.layoutDirection]===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,scrollDirection:this.state.options[l.Z.layoutParams.structure.scrollDirection],galleryWidth:this.state.container.galleryWidth,galleryHeight:this.state.container.galleryHeight,top:0,items:this.galleryStructure.items,totalWidth:this.galleryStructure.width,itemIdx:e,fixedScroll:t,isManual:i,scrollingElement:u,horizontalElement:c,durationInMS:r,slideTransition:this.state.options[l.Z.behaviourParams.gallery.horizontal.slideTransition],isContinuousScrolling:n,autoSlideshowContinuousSpeed:this.state.options[l.Z.behaviourParams.gallery.horizontal.autoSlide.speed],itemSpacing:this.state.options[l.Z.layoutParams.structure.itemSpacing]};return this.eventsListener(a.Z.events.GALLERY_NAVIGATION_START,{current:"scrollToItem",scrollParams:h}),this.currentScrollData=function(e){let t,i;const{scrollMarginCorrection:r=0,durationInMS:o,horizontalElement:n,scrollingElement:u,isRTL:c,scrollDirection:h,galleryWidth:m,galleryHeight:d,totalWidth:p,top:g,items:y,itemIdx:_,fixedScroll:v,slideTransition:f,isContinuousScrolling:P,autoSlideshowContinuousSpeed:b,itemSpacing:I}=e,S=c?-1:1;if(h===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?(i=n.scrollLeft*S,t=i+_*m/2):(i=g,t=g+_*d/2),!0!==v){s.Z.isVerbose()&&console.log("Scrolling to items #"+_);const e=y.find((e=>e.idx===_));if(t=h===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?s.Z.get(e,"offset.left"):s.Z.get(e,"offset.top"),s.Z.isVerbose()&&console.log("Scrolling to position "+t,e),!(t>=0))return s.Z.isVerbose()&&console.warn("Position not found, not scrolling"),new Promise((e=>e()));if(h===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL){const o=(m-e.width-I)/2;t-=o,t=Math.max(0,t),t=Math.min(t,p-m+r),t*=S,i*=S,s.Z.isVerbose()&&console.log("Scrolling to new position "+t,this)}}return h===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?qe({scroller:n,from:Math.round(i),to:Math.round(t),duration:o,isRTL:c,slideTransition:f,isContinuousScrolling:P,autoSlideshowContinuousSpeed:b}):new Promise((e=>{u.vertical().scrollTo(0,t),e(t)}))}(h),this.currentScrollData.scrollDeffered.promise.then((()=>{this.currentScrollData=null}))}catch(e){console.error("error:",e," pro-gallery, scrollToItem, cannot get scrollParams, ","isEditMode =",(0,Z.wh)()," isPreviewMode =",(0,Z.g4)()," isSiteMode =",(0,Z.bK)()," this.state.options =",this.state.options," this.state.container =",this.state.container," this.galleryStructure =",this.galleryStructure)}}}scrollToGroup(e,t,i,r=0,o,n=!1){if(e>=0){const u=this.state.scrollingElement,c=u.horizontal();try{const h={scrollMarginCorrection:o,isRTL:this.state.options[l.Z.behaviourParams.gallery.layoutDirection]===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,scrollDirection:this.state.options[l.Z.layoutParams.structure.scrollDirection],galleryWidth:this.state.container.galleryWidth,galleryHeight:this.state.container.galleryHeight,top:0,groups:this.galleryStructure.groups,totalWidth:this.galleryStructure.width,groupIdx:e,fixedScroll:t,isManual:i,scrollingElement:u,horizontalElement:c,durationInMS:r,slideTransition:this.state.options[l.Z.behaviourParams.gallery.horizontal.slideTransition],isContinuousScrolling:n,autoSlideshowContinuousSpeed:this.state.options[l.Z.behaviourParams.gallery.horizontal.autoSlide.speed],itemSpacing:this.state.options[l.Z.layoutParams.structure.itemSpacing]};return this.eventsListener(a.Z.events.GALLERY_NAVIGATION_START,{current:"scrollToGroup",scrollParams:h}),this.currentScrollData=function(e){let t,i;const{scrollMarginCorrection:r=0,durationInMS:o,horizontalElement:n,scrollingElement:u,isRTL:c,scrollDirection:h,galleryWidth:m,galleryHeight:d,totalWidth:p,top:g,groups:y,groupIdx:_,fixedScroll:v,slideTransition:f,isContinuousScrolling:P,autoSlideshowContinuousSpeed:b,itemSpacing:I}=e,S=c?-1:1;if(h===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?(i=n.scrollLeft,t=i+_*m/2):(i=g,t=g+_*d/2),!0!==v){s.Z.isVerbose()&&console.log("Scrolling to groups #"+_);const e=y.find((e=>e.idx===_));if(t=h===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?s.Z.get(e,"left"):s.Z.get(e,"top"),s.Z.isVerbose()&&console.log("Scrolling to position "+t,e),!(t>=0))return s.Z.isVerbose()&&console.warn("Position not found, not scrolling"),new Promise((e=>e()));if(h===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL){const i=(m-e.width-I)/2;t-=i,t=Math.max(0,t),t=Math.min(t,p-m+r),t*=S,s.Z.isVerbose()&&console.log("Scrolling to new position "+t,this)}}return h===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?qe({scroller:n,from:Math.round(i),to:Math.round(t),duration:o,isRTL:c,slideTransition:f,isContinuousScrolling:P,autoSlideshowContinuousSpeed:b}):new Promise((e=>{u.vertical().scrollTo(0,t),e(t)}))}(h),this.currentScrollData.scrollDeffered.promise.then((()=>{this.currentScrollData=null}))}catch(e){console.error("error:",e," pro-gallery, scrollToGroup, cannot get scrollParams, ","isEditMode =",(0,Z.wh)()," isPreviewMode =",(0,Z.g4)()," isSiteMode =",(0,Z.bK)()," this.state.options =",this.state.options," this.state.container =",this.state.container," this.galleryStructure =",this.galleryStructure)}}}containerInfiniteGrowthDirection(e=!1){const t=e||this.props.options,{showMoreClickedAtLeastOnce:i}=this.state;return t[l.Z.layoutParams.structure.scrollDirection]===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?"horizontal":this.props.options[l.Z.behaviourParams.gallery.vertical.loadMore.enable]?i&&t[l.Z.behaviourParams.gallery.vertical.loadMore.amount]===a.Z[l.Z.behaviourParams.gallery.vertical.loadMore.amount].ALL?"vertical":"none":"vertical"}onGalleryScroll(e){this.props.isInDisplay&&this.eventsListener(a.Z.events.GALLERY_SCROLLED,e)}componentDidUpdate(e,t){if(this.setVisibilityIfNeeded(e,t),this.props.isPrerenderMode!==e.isPrerenderMode){const{body:e,documentElement:t}=document,i=C.Z.innerHeight,r=Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight);this.getMoreItemsIfScrollIsDisabled(r,i)}}createDynamicStyles(e,t){const i=t&&!this.props.settings.disableSSROpacity;this.dynamicStyles=`\n ${i?`#pro-gallery-${this.props.id} .gallery-item-container { opacity: 0 }`:""}\n ${e?`#pro-gallery-${this.props.id} .gallery-item-hover::before { background: ${e} !important}`:""}\n `.trim()}createCssLayoutsIfNeeded(e){const{settings:t={}}=this.props,{avoidInlineStyles:i}=t;i&&(this.layoutCss=(({galleryItems:e,layoutParams:t,id:i})=>{const r=[];return r.push(et(i,e,t.options)),r})({layoutParams:e,isMobile:s.Z.isMobile(),id:this.props.id,galleryItems:this.galleryStructure.galleryItems}))}getScrollCss({id:e,items:t,options:i,container:r}){this.scrollCss=q.calcScrollCss({items:t,options:i,id:e,container:r})}toggleLoadMoreItems(){this.eventsListener(a.Z.events.LOAD_MORE_CLICKED,this.galleryStructure.galleryItems);const e=!0;if(this.state.showMoreClickedAtLeastOnce)this.setState({needToHandleShowMoreClick:e},(()=>{this.handleNewGalleryStructure()}));else{this.getScrollCss({id:this.props.id,items:this.galleryStructure.galleryItems,options:this.state.options,container:this.state.container});const t=this.state.container.height;this.setState({showMoreClickedAtLeastOnce:true,initialGalleryHeight:t,needToHandleShowMoreClick:e},(()=>{this.handleNewGalleryStructure()}))}}setGotFirstScrollIfNeeded(){this.state.gotFirstScrollEvent||(this.getScrollCss({id:this.props.id,items:this.galleryStructure.galleryItems,options:this.state.options,container:this.state.container}),this.setState({gotFirstScrollEvent:!0}))}setCurrentSlideshowViewIdx(e){this.currentSlideshowViewIdx=e}simulateHorizontalScrollToItem(e){(null==e?void 0:e.offset)&&this.onGalleryScroll({left:e.offset.left})}eventsListener(e,t,i){if(this.mediaScrollHelper.handleEvent({eventName:e,eventData:t}),e===a.Z.events.HOVER_SET&&(this.currentHoverChangeEvent.currentHoverIdx=t,C.Z.dispatchEvent(this.currentHoverChangeEvent)),e===a.Z.events.CURRENT_ITEM_CHANGED&&(this.setCurrentSlideshowViewIdx(t.idx),this.getIsScrollLessGallery(this.state.options)&&this.simulateHorizontalScrollToItem(this.galleryStructure.items[t.idx])),!this.state.firstUserInteractionExecuted)switch(e){case a.Z.events.HOVER_SET:case a.Z.events.LOAD_MORE_CLICKED:case a.Z.events.ITEM_ACTION_TRIGGERED:this.setState({firstUserInteractionExecuted:!0})}if("function"==typeof this.props.eventsListener)switch(e){case a.Z.events.ITEM_ACTION_TRIGGERED:case a.Z.events.ITEM_CLICKED:setTimeout(this.props.eventsListener(e,t,i),0);break;default:this.props.eventsListener(e,t,i)}if(e===a.Z.events.GALLERY_SCROLLED){this.mediaScrollHelper.onScroll(t);const e=Object.assign(Object.assign({},this.state.scrollPosition),t);this.setState({scrollPosition:e})}}getMoreItemsIfNeeded(e){var t;if(null===(t=this.deferredGettingMoreItems)||void 0===t?void 0:t.isPending);else if(this.deferredGettingMoreItems=new Xe,this.galleryStructure&&this.galleryStructure.galleryItems&&this.galleryStructure.galleryItems.length>0&&this.state.items&&this.state.options&&this.state.container){const t=this.state.options[l.Z.layoutParams.structure.scrollDirection],i=this.galleryStructure[t===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?"width":"height"]+(t===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?0:this.state.container.scrollBase),r=C.Z[t===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?"innerWidth":"innerHeight"];i<(e?3*r:0)+(e+r)?(this.eventsListener(a.Z.events.NEED_MORE_ITEMS,this.state.items.length),setTimeout((()=>{this.deferredGettingMoreItems.resolve()}),2e3)):this.deferredGettingMoreItems.reject()}else this.deferredGettingMoreItems.reject();return this.deferredGettingMoreItems.promise.catch((()=>{}))}canRender(){const e=this.props.container&&this.props.options&&this.state.items;return!e&&s.Z.isVerbose()&&console.log("PROGALLERY [CAN_RENDER] GalleryContainer",e,this.props.container,this.props.options,this.state.items),e}onMouseEnter(){var e;(null===(e=this.currentScrollData)||void 0===e?void 0:e.isContinuousScrolling)&&this.state.options[l.Z.behaviourParams.gallery.horizontal.autoSlide.pauseOnHover]&&Je(this.currentScrollData),this.setState({isInHover:!0})}onMouseLeave(){this.setState({isInHover:!1})}render(){var e,t,i;if(!this.canRender())return null;const r=this.props.options[l.Z.layoutParams.structure.scrollDirection]===a.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?Ke:ge;s.Z.isVerbose()&&(console.count("PROGALLERY [COUNTS] - GalleryContainer (render)"),console.log("PROGALLERY [RENDER] - GalleryContainer",this.props.container.scrollBase,{props:this.props,items:this.state.items}));const n="none"===this.containerInfiniteGrowthDirection();return o.createElement("div",{"data-key":"pro-gallery-inner-container",key:"pro-gallery-inner-container",className:this.props.isPrerenderMode?"pro-gallery-prerender":"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,ref:e=>this.galleryContainerRef=e,tabIndex:-1},o.createElement(Qe,{id:this.props.id,galleryScrollDirection:this.props.options[l.Z.layoutParams.structure.scrollDirection],isRTL:this.props.options[l.Z.behaviourParams.gallery.layoutDirection]===a.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,totalWidth:this.galleryStructure.width,scrollBase:this.props.container.scrollBase,scrollingElement:this.state.scrollingElement,getMoreItemsIfNeeded:this.getMoreItemsIfNeeded,setGotFirstScrollIfNeeded:this.setGotFirstScrollIfNeeded,onScroll:this.onGalleryScroll}),o.createElement(r,Object.assign({isInDisplay:this.props.isInDisplay,isInViewport:this.state.isInViewport,isPrerenderMode:this.props.isPrerenderMode,scrollingElement:this.state.scrollingElement,totalItemsCount:this.props.totalItemsCount,renderedItemsCount:this.props.renderedItemsCount,getMoreItemsIfNeeded:this.getMoreItemsIfNeeded,gotFirstScrollEvent:this.state.gotFirstScrollEvent,setGotFirstScrollIfNeeded:this.setGotFirstScrollIfNeeded,items:this.state.items,getVisibleItems:this.getVisibleItems,galleryStructure:this.galleryStructure,options:this.props.options,container:this.props.container,settings:this.props.settings,displayShowMore:n,id:this.props.id,activeIndex:this.props.activeIndex||0,customComponents:this.props.customComponents,playingVideoIdx:this.state.playingVideoIdx,playing3DIdx:this.state.playing3DIdx,noFollowForSEO:this.props.noFollowForSEO,proGalleryRegionLabel:this.props.proGalleryRegionLabel,proGalleryRole:this.props.proGalleryRole,firstUserInteractionExecuted:this.state.firstUserInteractionExecuted,isGalleryInHover:this.state.isInHover,enableExperimentalFeatures:this.props.enableExperimentalFeatures,galleryContainerRef:this.galleryContainerRef,outOfViewComponent:this.outOfViewComponent,virtualizationSettings:this.props.virtualizationSettings,galleryContainerId:`pro-gallery-container-${this.props.id}`,scrollTop:null===(t=null===(e=this.state)||void 0===e?void 0:e.scrollPosition)||void 0===t?void 0:t.top,isScrollLessGallery:this.getIsScrollLessGallery(this.state.options),disableItemFocus:this.props.disableItemFocus,actions:Object.assign(Object.assign({},this.props.actions),{findNeighborItem:this.findNeighborItem,toggleLoadMoreItems:this.toggleLoadMoreItems,eventsListener:this.eventsListener,setWixHeight:()=>{},scrollToItem:this.scrollToItem,scrollToGroup:this.scrollToGroup})},this.props.gallery)),o.createElement("div",{"data-key":"items-styles",key:"items-styles",style:{display:"none"}},(this.layoutCss||[]).filter(Boolean).map(((e,t)=>o.createElement("style",{id:`layoutCss-${t}`,key:`layoutCss-${t}`,dangerouslySetInnerHTML:{__html:e}}))),(this.scrollCss||[]).filter(Boolean).map(((e,t)=>o.createElement("style",{id:`scrollCss_${t}`,key:`scrollCss_${t}`,dangerouslySetInnerHTML:{__html:e}}))),!!this.dynamicStyles&&o.createElement("style",{dangerouslySetInnerHTML:{__html:this.dynamicStyles}})),"application"===this.props.proGalleryRole&&o.createElement("span",{ref:e=>this.outOfViewComponent=e,tabIndex:-1,className:"sr-only out-of-view-component"},null===(i=this.props.translations)||void 0===i?void 0:i.Accessibility_Left_Gallery))}}var ot=rt,at=i(23148);class st extends o.Component{constructor(){super(),s.Z.isLocal()&&!s.Z.isTest()&&console.log("PRO GALLERY DEV")}renderProps(){var e;return Object.assign(Object.assign({},this.props),{id:this.props.id,items:this.props.items||[],settings:this.props.settings||{},offsetTop:this.props.offsetTop,proGalleryRegionLabel:this.props.proGalleryRegionLabel,isInDisplay:null===(e=this.props.isInDisplay)||void 0===e||e})}containerProps(){return{id:`pro-gallery-${this.props.id}`,className:"pro-gallery"}}render(){return o.createElement(at.F,Object.assign({},this.props),o.createElement("div",Object.assign({},this.containerProps()),o.createElement(ot,Object.assign({},this.renderProps()))))}}function nt(e,t){return!0!==t&&(!0===e.shouldValidateTypes||"true"===(function(){try{const e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())}catch(e){return console.log("cannot use the URLSearchParams",e),{}}}()||""))}class lt extends o.Component{constructor(e){super(e),this.isUsingCustomInfoElements=this.isUsingCustomInfoElements.bind(this),this.blueprintsManager=new x({id:"layoutingGallery"}),this.blueprintsManager.init({deviceType:e.deviceType,api:{isUsingCustomInfoElements:this.isUsingCustomInfoElements,fetchMoreItems:t=>{"function"==typeof e.eventsListener&&e.eventsListener(a.Z.events.NEED_MORE_ITEMS,t)},onBlueprintReady:({blueprint:e,blueprintChanged:t,initialBlueprint:i})=>{t?this.setBlueprint(e,i):s.Z.isVerbose()&&console.count(">>> Blueprint not changed, not setting it")}}}),this.onNewProps(e,!0),this.state={blueprint:this.blueprintsManager.createInitialBlueprint(e)||null}}setBlueprint(e,t){t||this.setState({blueprint:e})}isUsingCustomInfoElements(){return!!this.galleryProps.customComponents.customHoverRenderer||!!this.galleryProps.customComponents.customInfoRenderer}onNewProps(e,t){const{eventsListener:i}=e,o=(0,r.__rest)(e,["eventsListener"]);this.galleryProps=Object.assign(Object.assign({},o),{eventsListener:(e,t,r)=>{e===a.Z.events.NEED_MORE_ITEMS?this.blueprintsManager.getMoreItems(t):"function"==typeof i&&i(e,t,r)},id:e.id||"default-dom-id",customComponents:e.customComponents||{}}),t||this.blueprintsManager.createBlueprint(this.galleryProps).catch((e=>{console.error("Could not create a blueprint from the new props",e)}))}UNSAFE_componentWillReceiveProps(e){this.onNewProps(e,!1)}render(){const{blueprint:e,typeErrors:t}=this.state;return t||(e&&Object.keys(e).length>0?o.createElement(st,Object.assign({},this.galleryProps,e)):null)}async componentDidMount(){if(!1===nt(this.props,s.Z.isSSR()))return;const e=await i.e(68368).then(i.bind(i,11094)),{validate:t,typeErrorsUI:r}=e,o=t(this.state.blueprint.options);o.length>0&&this.setState({typeErrors:r(o)})}}var ut,ct=(ut=lt,class extends o.Component{constructor(e){super(e),this.initViewModeWrapper(e)}initViewModeWrapper(e){void 0!==e.viewMode&&Z.Ce.setViewMode(e.viewMode),void 0!==e.deviceType&&Z.Ce._deviceType!==e.deviceType&&(s.Z.dumpCache(),Z.Ce.setDeviceType(e.deviceType))}updateViewModeWrapper(e){this.props.viewMode!==e.viewMode&&(s.Z.dumpCache(),Z.Ce.setViewMode(e.viewMode)),this.props.deviceType!==e.deviceType&&(s.Z.dumpCache(),Z.Ce.setDeviceType(e.deviceType))}UNSAFE_componentWillReceiveProps(e){this.updateViewModeWrapper(e)}render(){return o.createElement(ut,Object.assign({},this.props))}})},50160:function(e,t,i){"use strict";i.d(t,{bM:function(){return d},pz:function(){return u},Zk:function(){return p}});var r=i(5329);function o(e){return new Proxy({},{get:(t,i)=>e(i)})}class a{constructor(){this.listeners={}}on(e,t){return this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t),{remove:()=>{this.off(e,t)}}}emit(e,...t){const i=this.listeners[e];i&&i.forEach((e=>e(...t)))}off(e,t){const i=this.listeners[e];i&&i.splice(i.indexOf(t),1)}get call(){return o((e=>(...t)=>{this.emit(e,...t)}))}get listen(){return o((e=>t=>(this.on(e,t),()=>{this.off(e,t)})))}}var s=i(13876);const n=e=>document.getElementById(`pro-gallery-container-${e}`),l=r.createContext(void 0),u=({children:e,id:t})=>{const[i,o]=r.useState();return(0,r.useEffect)((()=>{const e=function(e){const t=new a;let i={mouseIn:!1,position:[0,0]};t.listen.mouseEnterState(((e,...t)=>{i={mouseIn:e,position:t}})),t.listen.mouseMove(((e,t)=>{i=Object.assign(Object.assign({},i),{position:[e,t]})}));const r=t=>{const i=e.getBoundingClientRect();return[t.clientX-i.left,t.clientY-i.top]};function o(i){const o=r(i);t.call.mouseEnterState(!m(e,i,...o),...o)}function s(i){const o=r(i);t.call.mouseEnterState(!m(e,i,...o),...o),t.call.mouseMove(...o)}function n(){t.call.mouseEnterState(!1,0,0)}function l(e){t.call.mouseClickInteractionEvent(e)}return e.addEventListener("mouseenter",o),e.addEventListener("mousemove",s),e.addEventListener("mouseleave",n),e.addEventListener("click",l),e.addEventListener("mousedown",l),e.addEventListener("mouseup",l),{listen:t.listen,get state(){return i},destroy:()=>{e.removeEventListener("mouseenter",o),e.removeEventListener("mousemove",s),e.removeEventListener("mouseleave",n),e.removeEventListener("click",l),e.removeEventListener("mousedown",l),e.removeEventListener("mouseup",l)}}}(n(t));return o(e),()=>{e.destroy()}}),[t]),r.createElement(l.Provider,{value:i},i&&e)};class c extends r.Component{constructor(){var e,t;super(...arguments),this.state={position:(null===(e=this.context)||void 0===e?void 0:e.state.position)||[0,0],mouseIn:(null===(t=this.context)||void 0===t?void 0:t.state.mouseIn)||!1}}componentDidMount(){if(!this.context)throw new Error("MouseFollowerContext is undefined");const e=this.context.listen.mouseMove(s.Z.throttle((()=>{this.setState({position:this.context.state.position})}),this.props.throttle)),t=this.context.listen.mouseEnterState((()=>{const{mouseIn:e,position:t}=this.context.state;this.state.mouseIn!==e&&(this.setState({mouseIn:e,position:t}),this.props.onEnterState&&this.props.onEnterState(e))})),i=this.context.listen.mouseClickInteractionEvent((e=>{if(!this.state.mouseIn)return;const[t,i]=this.state.position;this.props.shouldRenderAtPosition(t,i)&&("mousedown"!==e.type&&"mouseup"!==e.type?this.props.onClick(e):this.props.onMouseDownOrUp(e))}));this.cleanup=()=>{e(),t(),i()}}componentWillUnmount(){var e;null===(e=this.cleanup)||void 0===e||e.call(this)}render(){if(!this.state.mouseIn)return null;const[e,t]=this.state.position;return this.props.shouldRenderAtPosition(e,t)?this.props.render(this.state.position[0],this.state.position[1]):null}}c.contextType=l;const h="pg-clickable",m=(e,t,i,r)=>{for(const e of t.composedPath())if(e instanceof HTMLElement&&"true"===e.getAttribute(h))return!0;const o=e.getBoundingClientRect(),a=document.elementFromPoint(i+o.left,r+o.top);if(!a)return!1;let s=a;for(;s;){if("true"===s.getAttribute(h))return!0;s=s.parentElement}return!1};class d extends r.Component{constructor(){super(...arguments),this.shouldRender=e=>{const t=n(this.props.id).offsetWidth,i=t*(Math.min(this.props.mouseCursorContainerMaxWidth,this.props.isTheOnlyArrow?100:50)/100),r=i>=e,o=e>t-i;return"left"===this.props.direction?r:o},this.onNavigation=e=>{e.preventDefault(),e.stopPropagation(),this.props.onNavigate()}}render(){return r.createElement(c,{getElement:()=>n(this.props.id),render:(e,t)=>{var i;return r.createElement(r.Fragment,null,this.props.children(e,t),r.createElement("style",null,`\n #${null===(i=n(this.props.id))||void 0===i?void 0:i.id} * {\n cursor: none !important;\n }\n `))},shouldRenderAtPosition:this.shouldRender,onClick:this.onNavigation,onMouseDownOrUp:e=>e.stopPropagation(),throttle:50})}}const p=function(){const e=new Map;return o((t=>(e.get(t)||e.set(t,(e=>r.createElement(t,Object.assign(Object.assign({},e),{[h]:"true"})))),e.get(t))))}()},17646:function(e,t,i){"use strict";i.d(t,{VD:function(){return u},WT:function(){return m},sq:function(){return h}});var r=i(77089),o=i(32324),a=i(37178),s=i(13876),n=i(36390);function l(){return((0,r.bK)()||(0,r.Vg)())&&o.Z.document}function u({itemContainer:e,enableExperimentalFeatures:t,itemAnchor:i}){if(l()&&t){o.Z.document.activeElement===i&&e.focus()}}function c(e,t){const i=o.Z.document.activeElement;return String(i.className).includes(e)&&!!o.Z.document.querySelector(`#pro-gallery-${t} #${String(i.id)}`)}function h({prevProps:e,currentProps:t,itemActionRef:i}){try{if(l()&&o.Z.document.activeElement.className){const r=c("item-action",t.galleryId),o=c("show-more",t.galleryId);(r||o)&&(t.thumbnailHighlightId!==e.thumbnailHighlightId&&t.thumbnailHighlightId===t.id||t.activeIndex!==e.activeIndex&&t.activeIndex===t.idx)&&i.focus()}}catch(e){console.error("Could not set focus to active element",e)}}function m(e){return e[a.Z.behaviourParams.item.video.enablePlaceholder]&&(!s.Z.isSingleItemHorizontalDisplay(e)||e[a.Z.behaviourParams.item.video.playTrigger]!==n.Z[a.Z.behaviourParams.item.video.playTrigger].AUTO)}},47019:function(e,t,i){"use strict";i.d(t,{U:function(){return s}});var r=i(5329),o=i(23148);const a={videoPlayButton:r.lazy((()=>i.e(16370).then(i.bind(i,3293)))),rotateArrow:r.lazy((()=>i.e(49466).then(i.bind(i,69494))))},s=({type:e,size:t})=>{const[i,s]=(0,r.useState)(!1),n=(0,o.z)();if((0,r.useEffect)((()=>{s(!0)}),[]),!i)return r.createElement(r.Fragment,null);if("function"==typeof(null==n?void 0:n[e]))return n[e](t);const l=a[e];return l?r.createElement(r.Suspense,{fallback:r.createElement(r.Fragment,null)},r.createElement(l,{size:t})):r.createElement(r.Fragment,null)}},64762:function(e,t,i){"use strict";i.d(t,{k:function(){return o}});var r=i(5329);class o extends r.Component{constructor(e){super(e),this.state={isPrinting:!1}}componentDidMount(){window.addEventListener("beforeprint",(()=>{this.setState({isPrinting:!0})})),window.addEventListener("afterprint",(()=>{this.setState({isPrinting:!1})}))}render(){return this.state.isPrinting?r.createElement("source",Object.assign({},this.props)):null}}},23148:function(e,t,i){"use strict";i.d(t,{F:function(){return s},z:function(){return n}});var r=i(92712),o=i(5329);const a=o.createContext({}),s=e=>{var{children:t}=e;const i=(0,r.__rest)(e,["children"]).customComponents.EXPERIMENTAL_customGalleryUI;return o.createElement(a.Provider,{value:{galleryUI:i}},t)},n=()=>{const{galleryUI:e}=o.useContext(a);return e}},82206:function(e,t,i){"use strict";var r=i(13876),o=i(36390),a=i(77879);class s{constructor(e){this.uniqueId=r.Z.generateUUID(),this.isGalleryItem=!0,this.createdBy=e.createdBy,this.createUrl=this.createUrl.bind(this),this.createMagnifiedUrl=this.createMagnifiedUrl.bind(this),this.createSecondMediaItemIfNeeded(e),this.update(e)}createSecondMediaItemIfNeeded(e){var t;(null===(t=e.dto)||void 0===t?void 0:t.secondaryMedia)&&(this.secondaryMediaItem=new s(this.mapItemConfig(e)))}updateSecondaryMedia(e){this.secondaryMediaItem&&this.secondaryMediaItem.update(this.mapItemConfig(e))}mapItemConfig(e){const t={};return Object.assign(t,e.dto.secondaryMedia,e.dto.secondaryMedia.metadata),Object.assign(Object.assign({},e),{dto:t,scheme:Object.assign(Object.assign({},e.scheme),{maxHeight:t.height,maxWidth:t.width})})}update(e){if(this.createMediaUrl=e.createMediaUrl,e.dto&&e.dto.dto&&(e.dto=e.dto.dto,r.Z.isDev()&&console.warn("Item core is created with already existing item core")),this.dto=Object.assign({},e.dto),e.scheme)this.processScheme(e.scheme);else{const e={};Object.assign(e,this.dto,this.metadata),this.processScheme(new a.c({dto:e}).scheme)}if(this.dto){const e=this.dto.metaData||this.dto.metadata;e&&(this.dto.metaData=r.Z.parseStringObject(e))}this.sharpParams=Object.assign({},e.sharpParams),this.sharpParams.quality||(this.sharpParams.quality=90),this.sharpParams.usm||(this.sharpParams.usm={}),this.thumbnailSize=e.thumbnailSize||120,this.resetUrls(),this.updateSharpParams(),this.updateSecondaryMedia(e)}processScheme(e){this.id=e.id,this.idx=e.idx,this.type=e.type,this.style=e.style,this.width=e.width,this.maxWidth=e.maxWidth,this.infoWidth=e.infoWidth,this.height=e.height,this.maxHeight=e.maxHeight,this.infoHeight=e.infoHeight,this.margins=e.margins,this.ratio=e.ratio,this.cropRatio=e.cropRatio,this.cubeImages=e.isCropped,this.cubeType=e.cropType||o.Z.resizeMethods.FILL,this.offset=e.offset,this.group=e.group,this.orientation=e.orientation,this.visibility=e.visibility}renderProps(e){const t=Object.assign({ratio:this.ratio,bgColor:this.bgColor,maxWidth:this.maxWidth,maxHeight:this.maxHeight,infoWidth:this.infoWidth,infoHeight:this.infoHeight,orientation:this.orientation},this.style),i=Object.assign({className:"image",key:this.key,idx:this.idx,photoId:this.photoId,id:this.id,hash:this.id,html:this.html,type:this.type,isVideoPlaceholder:this.isVideoPlaceholder,videoPlaceholderUrl:this.videoPlaceholderUrl,url:this.url,alt:this.alt,htmlContent:this.htmlContent,directLink:this.directLink,directShareLink:this.directShareLink,linkUrl:this.linkUrl,linkType:this.linkType,linkOpenType:this.linkOpenType,linkData:this.linkData,title:this.title,fileName:this.fileName,description:this.description,createUrl:this.createUrl,createMagnifiedUrl:this.createMagnifiedUrl,cubeImages:this.cubeImages,cubeType:this.cubeType,cropRatio:this.cropRatio,isTransparent:this.isTransparent,offset:this.offset,style:t,isDemo:this.isDemo,videoUrl:this.videoUrl,isExternalVideo:this.isExternalVideo,hasSecondaryMedia:this.hasSecondaryMedia,scene:this.scene},e);return this.hasSecondaryMedia&&(i.secondaryMediaItem=Object.assign(Object.assign({},this.secondaryMediaItem.renderProps()),{style:Object.assign(Object.assign({},t),{bgColor:this.secondaryMediaItem.bgColor})})),i}getDataForShop(){const e=this.focalPoint,t=this.metadata;return{isDemo:t.isDemo,orderIndex:this.orderIndex,itemId:this.dto.itemId,itemUrl:this.url,itemHeight:t.height,title:t.title,itemWidth:t.width,itemType:t.type||"image",imageUrl:this.processedMediaUrl(o.Z.resizeMethods.FIT,200,200,null,null).img(),imagePurchasedUrl:this.dto.mediaUrl,fpX:e[0],fpY:e[1]}}getHighestMp4Resolution(e){const t=e.filter((e=>"mp4"===e.formats[0])),{width:i,height:r}=t.sort(((e,t)=>t.width-e.width))[0];return{width:i,height:r}}processedMediaUrl(e,t,i,a,s=!1){var n;const l=(e,t,i,o,a,n=null,l=null)=>{let u;if("function"==typeof this.createMediaUrl)try{const c=String(r.Z.hashCode(JSON.stringify({url:t,resizeMethod:i,requiredWidth:o,requiredHeight:a,sharpParams:n,focalPoint:l})));this._cachedUrls[c]||(this._cachedUrls[c]=this.createMediaUrl({item:e,originalUrl:t,resizeMethod:i,requiredWidth:o,requiredHeight:a,sharpParams:n,focalPoint:l,createMultiple:s})||""),u=this._cachedUrls[c]}catch(r){console.error("Cannot create url",r,e,t,i,o,a,n,l),u=String(t)}else u=String(t);return u};t=Math.ceil(t),i=Math.ceil(i);const u=e===o.Z.resizeMethods.FILL&&this.isCropped&&this.focalPoint,c={};let h=this.url;return c[o.Z.urlTypes.THREE_D]=()=>this.url,this.is3D&&(h=this.poster.url),this.isText?Object.assign({},...Object.values(o.Z.urlTypes).map((e=>({[e]:()=>""})))):((this.isVideo||this.isVideoPlaceholder)&&(h=null===(n=this.poster)||void 0===n?void 0:n.url,r.Z.isExternalUrl(this.url)?c[o.Z.urlTypes.VIDEO]=()=>this.url:c[o.Z.urlTypes.VIDEO]=()=>l(this,this.url,o.Z.resizeMethods.VIDEO,t,i)),c[o.Z.urlTypes.HIGH_RES]=()=>l(this,h,e,t,i,a,u),c[o.Z.urlTypes.LOW_RES]=()=>{const t=this.resizeWidth/this.resizeHeight;return l(this,h,this.cubeImages&&e!==o.Z.resizeMethods.FIT?o.Z.resizeMethods.FILL:o.Z.resizeMethods.FIT,250*t,250,Object.assign(Object.assign({},a),{quality:30,blur:30}),u)},c)}resetUrls(){const e=this.maxWidth||this.dto.width||this.metadata.width,t=this.maxHeight||this.dto.height||this.metadata.height;this.resizeWidth=Math.min(e,Math.ceil(this.width)),this.resizeHeight=Math.min(t,Math.ceil(this.height)),this._cachedUrls={},this.urls={}}createUrl(e,t){try{return this[e+"_url"][t]()}catch(e){return""}}get cubeTypeResizeMethod(){return{[o.Z.layoutParams_crop_method.FIT]:o.Z.resizeMethods.FIT,[o.Z.layoutParams_crop_method.FILL]:o.Z.resizeMethods.FILL}[this.cubeType]}createMagnifiedUrl(e=1){if(!this.urls.magnified_url){const{innerWidth:t,innerHeight:i}=this.style;this.urls.magnified_url=this.processedMediaUrl(this.cubeTypeResizeMethod,t*e,i*e,this.sharpParams,!0)}return this.urls.magnified_url[o.Z.urlTypes.HIGH_RES]()}get resized_url(){return this.urls.resized_url||(this.urls.resized_url=this.processedMediaUrl(this.cubeTypeResizeMethod,this.resizeWidth,this.resizeHeight,this.sharpParams)),this.urls.resized_url}get multi_url(){return this.urls.multi_url||(this.urls.multi_url=this.processedMediaUrl(this.cubeTypeResizeMethod,this.resizeWidth,this.resizeHeight,this.sharpParams,!0)),this.urls.multi_url}get scaled_url(){if(!this.urls.scaled_url){const e=this.maxWidth/this.maxHeight,t=this.resizeWidth/this.resizeHeight{const e=this.urls.download_url._img();return e+(e.includes("?")?"&":"?")+`dn=${this.fileName}`}),this.urls.download_url}updateSharpParams(){if(this.dto.metaData&&this.dto.metaData.sharpParams&&this.dto.metaData.sharpParams.L){const e=this.dto.metaData.sharpParams.L;e.quality&&!0===e.overrideQuality&&(this.sharpParams.quality=e.quality),e.usm&&!0===e.overrideUsm&&(this.sharpParams.usm=e.usm)}}get hasSecondaryMedia(){return!!this.secondaryMediaItem}get itemId(){return this.id}updateId(e){this.dto.itemId=this.id=e}get metadata(){let e=this.dto.metaData||this.dto.metadata;return r.Z.isUndefined(e)&&(e={}),e}get metaData(){return this.metadata}get bgColor(){let e;return e=this.isText?this.metadata&&(this.metadata.textStyle&&this.metadata.textStyle.backgroundColor||this.metadata.backgroundColor):"none",e}get isCropped(){return this.cubeImages&&this.cubeTypeResizeMethod===o.Z.resizeMethods.FILL}get focalPoint(){return this.metadata.focalPoint||[.5,.5]}set focalPoint(e){this.metadata.focalPoint=e}get photoId(){return this.id}get key(){return this._key||(this._key=(this.dto.key||this.id||this.dto.url||"no_key_found").replace(/\W/g,"")),this._key}get orderIndex(){return this.dto.orderIndex||this.dto.o||0}set orderIndex(e){this.dto.orderIndex=e}updateOrderIndex(e){const t=this.orderIndex!==e;return this.orderIndex=e,t}get url(){return this.dto.file_url||this.dto.mediaUrl||this.dto.url||this.dto.src||""}get mediaUrl(){return this.url}get html(){return this.dto.html||this.dto.text||this.metadata.html||this.metadata.text}get lastModified(){return this.metadata.lastModified}get seed(){return r.Z.hashToInt(this.url)}get isImage(){return"image"===this.type}get isImportant(){return!!this.dto.i}get videoUrl(){return this.metadata.videoUrl}get poster(){return this.metadata.poster||this.metadata.customPoster&&this.metadata.customPoster||(this.metadata.posters?this.metadata.posters[this.metadata.posters.length-1]:null)}get scene(){return this.metadata.scene}get qualities(){return this.metadata.qualities}get isExternalVideo(){return this.metadata.isExternal}get isExternal(){return!0===this.metadata.isExternal}set type(e){this._type=e}get type(){switch(this._type||this.dto.type||this.metadata.type||this.dto.media_type){case"dummy":return"dummy";case"v":case"video":return"video";case"h":case"html":case"text":return"text";case"3d":return"3d";default:return"image"}}get isVideoPlaceholder(){return!!(this.dto.isVideoPlaceholder||this.metadata.isVideoPlaceholder||this.dto.media_isVideoPlaceholder)}get videoPlaceholderUrl(){return this.dto.videoPlaceholderUrl||this.metadata.videoPlaceholderUrl||this.dto.media_videoPlaceholderUrl}get htmlContent(){var e;return null===(e=this.html)||void 0===e?void 0:e.replace(/<[^<>]*>/g,"").trim()}get alt(){return r.Z.isMeaningfulString(this.metadata.alt)&&this.metadata.alt||""}set alt(e){this.metadata.alt=e}get title(){return this.metadata.title||""}set title(e){this.metadata.title=e}get fileName(){return this.metadata.fileName||""}set fileName(e){this.metadata.fileName=e}get description(){return this.metadata.description||""}set description(e){this.metadata.description=e}get exif(){return this.metadata.exif||""}get hasLink(){return"wix"===this.linkType?!!this.linkData.type:!!this.linkUrl}get link(){return this.metadata.link||{}}get linkData(){return this.metadata.link&&this.metadata.link.data?this.metadata.link.data:this.isWixUrl?{type:"web",url:this.linkUrl}:{}}set linkData(e){this.metadata.link||(this.metadata.link={}),this.metadata.link.data=e}get linkType(){return this.metadata.link&&!r.Z.isUndefined(this.metadata.link.type)?this.metadata.link.type:this.linkUrl?"web":"none"}set linkType(e){this.metadata.link||(this.metadata.link={}),this.metadata.link={type:e,url:void 0,text:void 0,title:void 0,target:"_blank"}}get defaultLinkText(){const e=this.linkData;switch(this.linkType){case"wix":if(!e)return"Go to Link";switch(e.type){case"PageLink":return`Go to Page ${e.pageName}`;case"AnchorLink":return`Scroll to ${e.anchorName}`;case"ExternalLink":return`${e.url}`;case"EmailLink":return`Email ${e.recipient}`;case"PhoneLink":return`Call ${e.phoneNumber}`;case"DocumentLink":return`Open ${e.name}`;default:return"Go to Link"}case"web":return this.linkTitleFromUrl||this.linkUrl;case"page":return this.linkTitle;default:return""}}get defaultLinkValue(){const e=this.linkData;switch(this.linkType){case"wix":if(!e)return"Add a Link";switch(e.type){case"PageLink":return e.pageName?`PAGE - ${e.pageName}`:"PAGE";case"AnchorLink":return`ANCHOR - ${e.anchorName}`;case"ExternalLink":return`LINK - ${e.url}`;case"EmailLink":return`EMAIL - ${e.recipient}`;case"PhoneLink":return`PHONE - ${e.phoneNumber}`;case"DocumentLink":return`DOCUMENT - ${e.name}`;default:return"Add a Link"}case"web":return this.linkUrl;case"page":return this.linkTitle;default:return""}}get linkText(){return this.metadata.link&&this.metadata.link.text||this.defaultLinkText}set linkText(e){this.metadata.link||(this.metadata.link={}),this.metadata.link.text=e}get linkTitle(){return this.metadata.link&&this.metadata.link.title}set linkTitle(e){this.metadata.link||(this.metadata.link={}),this.metadata.link.title=e}get linkUrl(){return this.metadata.link&&this.metadata.link.url}set linkUrl(e){this.metadata.link||(this.metadata.link={}),this.metadata.link.url=e}get isWixUrl(){return this.linkUrl&&0===this.linkUrl.indexOf("wix")}get linkTitleFromUrl(){const e=/[^/]*\.\w+$/g.exec(this.linkUrl),t=e&&e[0];return t&&t.split(".")[0]}get unprotectedLinkOpenType(){return r.Z.get(this,"metadata.link.target")}get linkOpenType(){return this.metadata.link&&!r.Z.isUndefined(this.metadata.link.target)?this.unprotectedLinkOpenType:this.metadata.link&&!r.Z.isUndefined(this.metadata.link.targetBlank)?this.metadata.link.targetBlank?"_blank":"_top":"_blank"}set linkOpenType(e){this.metadata.link||(this.metadata.link={}),this.metadata.link.target=e}get initialLinkObject(){return{type:"none",url:void 0,text:void 0,title:void 0,target:"_blank"}}get isDemo(){return this.metadata.isDemo||this.dto.isDemo||"public"===this.metadata.sourceName||this.metadata.tags&&Array.isArray(this.metadata.tags)&&this.metadata.tags.indexOf("_paid")>=0}set isDemo(e){this.metadata.isDemo=e}get isText(){return"text"===this.type}get isVideo(){return"video"===this.type}get is3D(){return"3d"===this.type}get isVisible(){return!0}get isRendered(){return!0}get isDimensionless(){return!(this.maxWidth>1||this.maxHeight>1)}get isTransparent(){return this.url&&(this.url.indexOf(".png")>0||this.url.indexOf(".gif")>0)}get webLink(){var e;return(null===(e=this.linkUrl)||void 0===e?void 0:e.length)>0&&"web"===this.linkType?{url:this.linkUrl,target:this.linkOpenType}:{}}get directLink(){return this.dto.directLink||this.webLink||{}}get directShareLink(){return this.dto.directShareLink||""}}t.Z=s},77879:function(e,t,i){"use strict";i.d(t,{c:function(){return a}});var r=i(37178),o=i(28541);class a{constructor(e){if(this.style={},this.visibility={},(e=e||{}).dto||(console.error("Item has no DTO",e),e.dto={}),this.config=e,this.dto=e.dto,this.idx=e.idx,this.inGroupIdx=e.inGroupIdx,this.container=e.container,this.cubeType="FILL",e.styleParams){const{styleParams:t}=e;this.cubeType=t[r.Z.layoutParams.crop.method],this.cubeImages=t[r.Z.layoutParams.crop.enable],this._cropRatio=t[r.Z.layoutParams.crop.ratios],this.rotatingCropRatios=t[r.Z.layoutParams.crop.ratios].length>1&&t[r.Z.layoutParams.crop.ratios],this.smartCrop=t[r.Z.layoutParams.crop.enableSmartCrop],this.cropOnlyFill=t[r.Z.layoutParams.crop.cropOnlyFill],this.imageMargin=t[r.Z.layoutParams.structure.itemSpacing],this.gallerySpacing=t[r.Z.layoutParams.structure.gallerySpacing],this.scatter=t[r.Z.layoutParams.structure.scatter.randomScatter],this.rotatingScatter=t[r.Z.layoutParams.structure.scatter.manualScatter],this.smartCrop=t[r.Z.layoutParams.crop.enableSmartCrop],this.useMaxDimensions=!t[r.Z.layoutParams.structure.enableStreching]&&"text"!==this.itemType,this.cubeFitPosition=t[r.Z.layoutParams.crop.alignment]}this._groupOffset={top:0,left:0,right:0,bottom:0},this._group={},this.calcPinOffset=()=>0,this.resize(1)}fixMetadataVerticalVideoRatio(e){if(e.qualities&&e.qualities[0]){const{qualities:t}=e,{height:i,width:r}=t[t.length-1];e.height=i,e.width=r}}resize(e){let t=1;if(!1!==e){if(e>0)t=e;else if("object"==typeof e)if(e.width){t=Math.max(1,e.width)/this.width}else if(e.height){t=Math.max(1,e.height)/this.height}return this.width*=t,this.height*=t,this.resized=!0,this}}pinToCorner(e,t=!1){const i=e.indexOf("top")>=0,r=e.indexOf("left")>=0;this.style.top=i?0:"auto",this.style.bottom=i?"auto":0,this.style.left=r?0:"auto",this.style.right=r?"auto":0,this.pin=e,this.isPinnedTop=i,this.isPinnedLeft=r,this.pinAfter=t,this.pinAfterType=i?"top":r?"left":"",this.calcPinOffset=(e,t)=>{if(this.pinAfter){if(this.pin===t){const e=this.imageMargin/2;return"top"===t?this.pinAfter.height+2*e:"left"===t?this.pinAfter.width+2*e:0}return 0}return 0}}setPosition(e){this.style.position=e}getPosition(e){return parseInt(e,10)>=0?e:"auto"}calcScatter(e){const t=this.imageMargin/2,i=this.gallerySpacing,r=e.left>0?t:i,a=this.container.galleryWidth-e.right>2*t?t:i,s=e.top>0?t:i,n=this.container.galleryHeight-e.bottom>2*t?t:i;if(!(this.rotatingScatter.length>0)){if(this.scatter>0){const t=this.scatter/100*.4;let i=o.P.hashToRandomInt(this.seed+e.right+"x",-r,a);i*=this.scatter/100,i*=1-t,i+=(i>0?t*a:t*r)*Math.sign(i),i=Math.round(i);let l=o.P.hashToRandomInt(this.seed+e.right+"y",-s,n);return l*=this.scatter/100,l*=1-t,l+=(l>0?t*n:t*s)*Math.sign(l),l=Math.round(l),{x:i,y:l}}return{x:0,y:0}}try{const e=this.rotatingScatter.split(","),[t,i]=e[this.idx%e.length].split("/").map((e=>parseInt(e))).map((e=>e/100));return{x:t*(t>0?a:r),y:i*(i>0?n:s)}}catch(e){console.error("Cannot calculate rotating scatter",e)}}get top(){return this.getPosition(this.style.top)}get left(){return this.getPosition(this.style.left)}get right(){return this.getPosition(this.style.right)}get bottom(){return this.getPosition(this.style.bottom)}set group(e){Object.assign(this._group,e)}get group(){return this._group}set groupOffset(e){Object.assign(this._groupOffset,e)}get offset(){var e;const t={top:this._groupOffset.top+(this.isPinnedTop?this.calcPinOffset(this._group.height,"top"):this._group.height-this.outerHeight)||0,left:this._groupOffset.left+(this.isPinnedLeft?this.calcPinOffset(this._group.width,"left"):this._group.width-this.outerWidth)||0},{fixTop:i=0,fixLeft:r=0,fixRight:o=0,fixBottom:a=0}=this.dimensions;if(t.innerTop=i,t.innerLeft=r,t.innerRight=o,t.innerBottom=a,t.right=t.left+this.width,t.bottom=t.top+this.height,this.scatter>0||(null===(e=this.rotatingScatter)||void 0===e?void 0:e.length)>0){const{x:e,y:i}=this.calcScatter(t);t.left+=e,t.top+=i,t.right=t.left+this.width,t.bottom=t.top+this.height}return t}get id(){return this.dto.id||this.dto.photoId||this.dto.itemId}set id(e){this.dto.itemId=this.dto.photoId=this.dto.id=e}get hash(){return this.dto.hash||this.dto.mediaUrl||this.dto.id}get seed(){return this.dto.seed||o.P.hashToInt(this.hash)}get metadata(){return this.dto.metadata||this.dto.metaData||{}}get itemType(){return this.metadata.type||"image"}get maxWidth(){return this.dto.width||this.dto.w}set maxWidth(e){this.dto.width=e}get outerWidth(){return this.width+2*this.margins}get infoWidth(){return this.Group?this.Group.infoWidth:0}get orgWidth(){return this.style.orgWidth||this.dto.width||this.dto.w||1}get width(){let e;return e=this.cubeImages&&this.ratio>=this.cropRatio?this.style.cubedWidth||this.orgHeight*this.cropRatio:this.orgWidth,Math.max(e,1)}set width(e){this.style.cubedWidth=this.style.orgWidth=this.style.width=Math.max(1,e);const{fixLeft:t=0,fixRight:i=0}=this.dimensions;this.style.innerWidth=this.style.width-t-i}get outerHeight(){return this.height+2*this.margins}get orgHeight(){return this.style.orgHeight||this.dto.height||this.dto.h||1}get height(){let e;return e=this.cubeImages&&this.ratio{e?(t=this.useMaxDimensions?Math.min(this.width,this.maxWidth):this.width,i=t/r):(i=this.useMaxDimensions?Math.min(this.height,this.maxHeight):this.height,t=i*r)},o=this.ratio>=this.cropRatio;e?r(o,this.ratio):this.useMaxDimensions&&(this.width>this.maxWidth||this.height>this.maxHeight)&&(this.cubeImages?r(!o,this.cropRatio):r(!o,this.ratio));let a={fixTop:(this.height-i)/2,fixLeft:(this.width-t)/2,fixRight:(this.width-t)/2,fixBottom:(this.height-i)/2};switch(this.cubeFitPosition){case"TOP":a.fixTop=0,a.fixBottom*=2;break;case"BOTTOM":a.fixTop*=2,a.fixBottom=0;break;case"LEFT":a.fixLeft=0,a.fixRight*=2;break;case"RIGHT":a.fixLeft*=2,a.fixRight=0}return a}get cropRatio(){let e;if(this.rotatingCropRatio)e=this.rotatingCropRatio;else if(this.rotatingCropRatios&&this.rotatingCropRatios.length>1){const t=this.rotatingCropRatios;e=this.rotatingCropRatio=t[this.idx%t.length]}if(e||"function"!=typeof this._cropRatio||(e=this._cropRatio()),!e&&this.cropOnlyFill&&"FIT"===this.cubeType&&(e=this.ratio),e||(e=this._cropRatio&&this._cropRatio[0]||this.ratio),null!==this.dynamicCropRatios&&"string"==typeof e){if(!this.dynamicCropRatios){const t=/^\d*\.?\d*(%|px)\/\d*\.?\d*(%|px)$/.exec(e);this.dynamicCropRatios=t?e.split("/").map(((e,t)=>e.indexOf("%")>0?{type:"%",val:parseFloat(e.replace("%",""))/100,dim:0===t?"galleryWidth":"galleryHeight"}:{type:"px",val:parseInt(e.replace("px",""))})):null}if(this.dynamicCropRatios){const t=this.dynamicCropRatios.map((e=>{if("%"===e.type){const t=this.container[e.dim]+("galleryHeight"===e.dim?this.imageMargin/2:0);return e.val*t-this.imageMargin}return e.val}));e=t[0]/t[1]}}return e=Number(e),!0===this.smartCrop&&(e=this.isPortrait?Math.min(e,1/e):Math.max(e,1/e)),"MIN"===this.cubeType?e=Math.max(e,this.orgRatio):"MAX"===this.cubeType&&(e=Math.min(e,this.orgRatio)),e}set cropRatio(e){"number"==typeof this._cropRatio&&(this._cropRatio=e,this.style.cubedHeight=this.style.cubedWidth=0)}get orientation(){return this.ratio<.999?"portrait":"landscape"}get isPortrait(){return"portrait"===this.orientation}get isLandscape(){return"landscape"===this.orientation}get ratio(){return this.orgRatio||(this.orgRatio=this.orgWidth/this.orgHeight),this.orgRatio}set ratio(e){this.orgRatio=e}get roundedStyle(){return Object.assign(Object.assign({},this.style),{width:Math.round(this.style.width),height:Math.round(this.style.height)})}get scheme(){return{id:this.id,idx:this.idx,inGroupIdx:this.inGroupIdx,dto:this.dto,type:this.type,style:this.style,roundedStyle:this.roundedStyle,width:this.width,maxWidth:this.maxWidth,outerWidth:this.outerWidth,infoWidth:this.infoWidth,margins:this.margins,ratio:this.ratio,dimensions:this.dimensions,cropRatio:this.cropRatio,isCropped:this.cubeImages,cropType:this.cubeType,height:this.height,maxHeight:this.maxHeight,outerHeight:this.outerHeight,infoHeight:this.infoHeight,group:this.group,offset:this.offset,groupOffset:this._groupOffset,orientation:this.orientation,isPortrait:this.isPortrait,isLandscape:this.isLandscape,visibility:this.visibility}}}},28541:function(e,t,i){"use strict";i.d(t,{P:function(){return o}});var r=i(37178);const o=new class{constructor(){this._hash2int={}}stripSlashes(e){let t="";return"string"==typeof e&&(t=e.replace(/\\\//g,"/").replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/\\0/g,"\0").replace(/\\\\/g,"\\")),t}parseStringObject(e){if("string"!=typeof e)return e;const t=this.stripSlashes(e);if("string"==typeof e&&/^[\],:{}\s]*$/.test(t.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))try{return JSON.parse(t)}catch(e){}return t}hashToInt(e,t,i){let r=0;if(void 0===e||0===e.length)return r;if(!this._hash2int[e]){for(let t=0;t{void 0===i[e]&&(i[e]=t[e])})),i}(e)}convertContainer(e,t){const i=Object.assign({bounds:{}},e);return e.width>=0&&!(e.galleryWidth>=0)&&(i.galleryWidth=e.width+2*((t[r.Z.layoutParams.structure.itemSpacing]/2||0)-(t[r.Z.layoutParams.structure.gallerySpacing]||0)),delete i.width),e.height>=0&&!(e.galleryHeight>=0)&&(i.galleryHeight=e.height+((t[r.Z.layoutParams.structure.itemSpacing]/2||0)-(t[r.Z.layoutParams.structure.gallerySpacing]||0)),delete i.height),t.externalInfoHeight>=0&&"HORIZONTAL"===t[r.Z.layoutParams.structure.scrollDirection]&&(i.galleryHeight-=t.externalInfoHeight),i}}},92712:function(e,t,i){"use strict";i.d(t,{__assign:function(){return r},__rest:function(){return o}});var r=function(){return r=Object.assign||function(e){for(var t,i=1,r=arguments.length;i"done"===r?t=>(i,r)=>{((t,i)=>{const r=e[t];r&&r.forEach((e=>e(i)))})(i,r),t&&t(i,r)}:i=>{const o=r;return e[o]||(e[o]=[]),e[o].push(i),t}});return t}var a=u(20011),s=u(29169),n=u(92119);var l=u(95561),h=u.n(l);const m=()=>{const[e,t]=(0,i.useState)(!1),r=(0,i.useRef)(null);return(0,i.useEffect)((()=>{u.e(94224).then(u.bind(u,10856)).then((e=>{r.current=e.ProFullscreen,t(!0)}))}),[]),[e,r.current]};var d=u(36390);function p(e){const[t]=function(){const[e,t]=(0,i.useState)({width:window.innerWidth,height:window.innerHeight});return(0,i.useEffect)((()=>{const e=()=>{t({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}})),[e]}(),[o,a]=m();return o?r().createElement("div",{className:"pro-fullscreen-wrapper",style:e.rootCss},r().createElement(a,{forceProGallerySlider:!0,items:e.items,initialIdx:e.fullscreenIdx,totalItemsCount:e.items.length,container:e.container?e.container:t,locale:e.locale,styles:e.options,isAccessible:e.isAccessible,galleryId:e.galleryId,viewMode:e.viewMode,noFollowForSEO:e.noFollowForSEO,eventsListener:t=>{if("CLOSE_FULLSCREEN"===t)e.setFullscreenIdx&&e.setFullscreenIdx(-1)},itemsLoveData:[],deviceType:e.deviceType,isPreview:e.viewMode===d.Z.viewMode.PREVIEW,animationDuration:e.animationDuration,shouldUseNewSocialSharePopup:!1,createMediaUrl:e.createMediaUrl||n.N,staticMediaUrls:e.staticMediaUrls,backgroundFilterElementSelector:e.backgroundFilterElementSelector||"#SITE_CONTAINER"})):null}var g="data-focus-lock",y="data-focus-lock-disabled";function _(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var v="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,f=new WeakMap;function P(e,t){var r,o,a,s=(r=t||null,o=function(t){return e.forEach((function(e){return _(e,t)}))},(a=(0,i.useState)((function(){return{value:r,callback:o,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=o,a.facade);return v((function(){var t=f.get(s);if(t){var i=new Set(t),r=new Set(e),o=s.current;i.forEach((function(e){r.has(e)||_(e,null)})),r.forEach((function(e){i.has(e)||_(e,o)}))}f.set(s,e)}),[e]),s}var b={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},I=function(e){var t=e.children,o=void 0===t?null:t;return r().createElement(i.Fragment,null,r().createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:b}),o,o&&r().createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:b}))};I.propTypes={};var S=u(92712);function E(e){return e}function O(e,t){void 0===t&&(t=E);var i=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:e},useMedium:function(e){var o=t(e,r);return i.push(o),function(){i=i.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){r=!0;var t=[];if(i.length){var o=i;i=[],o.forEach(e),t=i}var a=function(){var i=t;t=[],i.forEach(e)},s=function(){return Promise.resolve().then(a)};s(),i={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),i}}}}}function T(e,t){return void 0===t&&(t=E),O(e,t)}var L=T({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),w=T(),A=T(),Z=function(e){void 0===e&&(e={});var t=O(null);return t.options=(0,S.__assign)({async:!0,ssr:!1},e),t}({async:!0,ssr:"undefined"!=typeof document}),x=(0,i.createContext)(void 0),C=[],N=(0,i.forwardRef)((function(e,t){var o,s=(0,i.useState)(),n=s[0],l=s[1],u=(0,i.useRef)(),c=(0,i.useRef)(!1),h=(0,i.useRef)(null),m=(0,i.useState)({})[1],d=e.children,p=e.disabled,_=void 0!==p&&p,v=e.noFocusGuards,f=void 0!==v&&v,I=e.persistentFocus,S=void 0!==I&&I,E=e.crossFrame,O=void 0===E||E,T=e.autoFocus,A=void 0===T||T,N=(e.allowTextSelection,e.group),R=e.className,D=e.whiteList,M=e.hasPositiveIndices,G=e.shards,k=void 0===G?C:G,H=e.as,B=void 0===H?"div":H,F=e.lockProps,z=void 0===F?{}:F,U=e.sideCar,W=e.returnFocus,j=void 0!==W&&W,V=e.focusOptions,$=e.onActivation,Y=e.onDeactivation,K=(0,i.useState)({})[0],X=(0,i.useCallback)((function(e){var t=e.captureFocusRestore;if(!h.current){var i,r=null==(i=document)?void 0:i.activeElement;h.current=r,r!==document.body&&(h.current=t(r))}u.current&&$&&$(u.current),c.current=!0,m()}),[$]),q=(0,i.useCallback)((function(){c.current=!1,Y&&Y(u.current),m()}),[Y]),J=(0,i.useCallback)((function(e){var t=h.current;if(t){var i=("function"==typeof t?t():t)||document.body,r="function"==typeof j?j(i):j;if(r){var o="object"==typeof r?r:void 0;h.current=null,e?Promise.resolve().then((function(){return i.focus(o)})):i.focus(o)}}}),[j]),Q=(0,i.useCallback)((function(e){c.current&&L.useMedium(e)}),[]),ee=w.useMedium,te=(0,i.useCallback)((function(e){u.current!==e&&(u.current=e,l(e))}),[]);var ie=(0,a.Z)(((o={})[y]=_&&"disabled",o[g]=N,o),z),re=!0!==f,oe=re&&"tail"!==f,ae=P([t,te]),se=(0,i.useMemo)((function(){return{observed:u,shards:k,enabled:!_,active:c.current}}),[_,c.current,k,n]);return r().createElement(i.Fragment,null,re&&[r().createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:_?-1:0,style:b}),M?r().createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:_?-1:1,style:b}):null],!_&&r().createElement(U,{id:K,sideCar:Z,observed:n,disabled:_,persistentFocus:S,crossFrame:O,autoFocus:A,whiteList:D,shards:k,onActivation:X,onDeactivation:q,returnFocus:J,focusOptions:V,noFocusGuards:f}),r().createElement(B,(0,a.Z)({ref:ae},ie,{className:R,onBlur:ee,onFocus:Q}),r().createElement(x.Provider,{value:se},d)),oe&&r().createElement("div",{"data-focus-guard":!0,tabIndex:_?-1:0,style:b}))}));N.propTypes={};var R=N;function D(e,t){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},D(e,t)}var M=u(47169);var G=function(e,t){return function(o){var a,s=[];function n(){a=e(s.map((function(e){return e.props}))),t(a)}var l=function(e){var t,i;function l(){return e.apply(this,arguments)||this}i=e,(t=l).prototype=Object.create(i.prototype),t.prototype.constructor=t,D(t,i),l.peek=function(){return a};var u=l.prototype;return u.componentDidMount=function(){s.push(this),n()},u.componentDidUpdate=function(){n()},u.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),n()},u.render=function(){return r().createElement(o,this.props)},l}(i.PureComponent);return(0,M.Z)(l,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(o)+")"),l}},k=function(e){for(var t=Array(e.length),i=0;i=0})).sort(Q)},te=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),ie="".concat(te,", [data-focus-guard]"),re=function(e,t){return k((e.shadowRoot||e).children).reduce((function(e,i){return e.concat(i.matches(t?ie:te)?[i]:[],re(i))}),[])},oe=function(e,t){return e.reduce((function(e,i){var r,o=re(i,t),a=(r=[]).concat.apply(r,o.map((function(e){return function(e,t){var i;return e instanceof HTMLIFrameElement&&(null===(i=e.contentDocument)||void 0===i?void 0:i.body)?oe([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(a,i.parentNode?k(i.parentNode.querySelectorAll(te)).filter((function(e){return e===i})):[])}),[])},ae=function(e,t){return k(e).filter((function(e){return W(t,e)})).filter((function(e){return function(e){return!(($(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},se=function(e,t){return void 0===t&&(t=new Map),k(e).filter((function(e){return j(t,e)}))},ne=function(e,t,i){return ee(ae(oe(e,i),t),!0,i)},le=function(e,t){return ee(ae(oe(e),t),!1)},ue=function(e,t){return ae((i=e.querySelectorAll("[".concat("data-autofocus-inside","]")),k(i).map((function(e){return oe([e])})).reduce((function(e,t){return e.concat(t)}),[])),t);var i},ce=function(e,t){return e.shadowRoot?ce(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||k(e.children).some((function(e){var i;if(e instanceof HTMLIFrameElement){var r=null===(i=e.contentDocument)||void 0===i?void 0:i.body;return!!r&&ce(r,t)}return ce(e,t)}))},he=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?he(t.shadowRoot):t instanceof HTMLIFrameElement&&function(e){try{return e()}catch(e){return}}((function(){return t.contentWindow.document}))?he(t.contentWindow.document):t}},me=function(e){return e.parentNode?me(e.parentNode):e},de=function(e){return H(e).filter(Boolean).reduce((function(e,t){var i=t.getAttribute(g);return e.push.apply(e,i?function(e){for(var t=new Set,i=e.length,r=0;r0&&t.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,i){return!t.has(i)}))}(k(me(t).querySelectorAll("[".concat(g,'="').concat(i,'"]:not([').concat(y,'="disabled"])')))):[t]),e}),[])},pe=function(e,t){return void 0===t&&(t=he(B(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&de(e).some((function(e){return ce(e,t)||function(e,t){return Boolean(k(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},ge=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},ye=function(e,t){return Y(e)&&e.name?function(e,t){return t.filter(Y).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},_e=function(e){return e[0]&&e.length>1?ye(e[0],e):e[0]},ve=function(e,t){return e.indexOf(ye(t,e))},fe="NEW_FOCUS",Pe=function(e,t,i,r,o){var a=e.length,s=e[0],n=e[a-1],l=X(r);if(!(r&&e.indexOf(r)>=0)){var u=void 0!==r?i.indexOf(r):-1,c=o?i.indexOf(o):u,h=o?e.indexOf(o):-1;if(-1===u)return-1!==h?h:fe;if(-1===h)return fe;var m,d,p=u-c,g=i.indexOf(s),y=i.indexOf(n),_=(m=i,d=new Set,m.forEach((function(e){return d.add(ye(e,m))})),m.filter((function(e){return d.has(e)}))),v=void 0!==r?_.indexOf(r):-1,f=o?_.indexOf(o):v,P=_.filter((function(e){return e.tabIndex>=0})),b=void 0!==r?P.indexOf(r):-1,I=o?P.indexOf(o):b,S=b>=0&&I>=0?I-b:f-v;if(!p&&h>=0)return h;if(0===t.length)return h;var E=ve(e,t[0]),O=ve(e,t[t.length-1]);return u<=g&&l&&Math.abs(p)>1?O:u>=y&&l&&Math.abs(p)>1?E:p&&Math.abs(S)>1?h:u<=g?O:u>y?E:p?Math.abs(p)>1?h:(a+h+p)%a:void 0}},be=function(e,t,i){var r,o=e.map((function(e){return e.node})),a=se(o.filter((r=i,function(e){var t,i=null===(t=V(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==i&&"false"!==i||r.indexOf(e)>=0})));return a&&a.length?_e(a):_e(se(t))},Ie=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&Ie(e.parentNode.host||e.parentNode,t),t},Se=function(e,t){for(var i=Ie(e),r=Ie(t),o=0;o=0)return a}return!1},Ee=function(e,t,i){var r=H(e),o=H(t),a=r[0],s=!1;return o.filter(Boolean).forEach((function(e){s=Se(s||e,e)||s,i.filter(Boolean).forEach((function(e){var t=Se(a,e);t&&(s=!s||ce(t,s)?t:Se(t,s))}))})),s},Oe=function(e,t){return e.reduce((function(e,i){return e.concat(ue(i,t))}),[])},Te=function(e,t){var i=he(H(e).length>0?document:B(e).ownerDocument),r=de(e).filter(q),o=Ee(i||e,e,r),a=new Map,s=le(r,a),n=s.filter((function(e){var t=e.node;return q(t)}));if(n[0]){var l,u,c,h=le([o],a).map((function(e){return e.node})),m=(l=h,u=n,c=new Map,u.forEach((function(e){return c.set(e.node,e)})),l.map((function(e){return c.get(e)})).filter(J)),d=m.map((function(e){return e.node})),p=m.filter((function(e){return e.tabIndex>=0})).map((function(e){return e.node})),g=Pe(d,p,h,i,t);if(g===fe){var y=be(s,p,Oe(r,a))||be(s,d,Oe(r,a));return y?{node:y}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===g?g:m[g]}},Le=0,we=!1,Ae=function(e,t,i){void 0===i&&(i={});var r=Te(e,t);if(!we&&r){if(Le>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),we=!0,void setTimeout((function(){we=!1}),1);Le++,ge(r.node,i.focusOptions),Le--}};function Ze(e){if(!e)return null;if("undefined"==typeof WeakRef)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(null==t?void 0:t.deref())||null}}var xe=function(e){var t=function(e){if(!e)return null;for(var t=[],i=e;i&&i!==document.body;)t.push({current:Ze(i),parent:Ze(i.parentElement),left:Ze(i.previousElementSibling),right:Ze(i.nextElementSibling)}),i=i.parentElement;return{element:Ze(e),stack:t,ownerDocument:e.ownerDocument}}(e);return function(){return function(e){var t,i,r,o,a;if(e)for(var s=e.stack,n=e.ownerDocument,l=new Map,u=0,c=s;u=0,guard:X(t)}}))),I=b.map((function(e){return e.node})).indexOf(P);I>-1&&(b.filter((function(e){var t=e.guard,i=e.node;return t&&i.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),je(I,b.length,1,b),je(I,-1,-1,b))}}}return n},Ke=function(e){Ye()&&e&&(e.stopPropagation(),e.preventDefault())},Xe=function(){return Re(Ye)},qe=function(e){var t=e.target,i=e.currentTarget;i.contains(t)||(Fe={observerNode:i,portaledElement:t})},Je=function(){Ue=!0},Qe=function(){Ue=!1,ze="just",Re((function(){ze="meanwhile"}))};var et={moveFocusInside:Ae,focusInside:pe,focusNextElement:function(e,t){void 0===t&&(t={}),Ce(e,t,(function(e,t){var i=e.next,r=e.first;return i||t&&r}))},focusPrevElement:function(e,t){void 0===t&&(t={}),Ce(e,t,(function(e,t){var i=e.prev,r=e.last;return i||t&&r}))},focusFirstElement:function(e,t){void 0===t&&(t={}),Ne(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),Ne(e,t,"last")},captureFocusRestore:xe};L.assignSyncMedium(qe),w.assignMedium(Xe),A.assignMedium((function(e){return e(et)}));var tt=G((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!ke&&(document.addEventListener("focusin",Ke),document.addEventListener("focusout",Xe),window.addEventListener("focus",Je),window.addEventListener("blur",Qe));var i=ke,r=i&&t&&t.id===i.id;ke=t,i&&!r&&(i.onDeactivation(),e.filter((function(e){return e.id===i.id})).length||i.returnFocus(!t)),t?(He=null,r&&i.observed===t.observed||t.onActivation(et),Ye(),Re(Ye)):(document.removeEventListener("focusin",Ke),document.removeEventListener("focusout",Xe),window.removeEventListener("focus",Je),window.removeEventListener("blur",Qe),He=null)}))((function(){return null})),it=(0,i.forwardRef)((function(e,t){return r().createElement(R,(0,a.Z)({sideCar:tt,ref:t},e))})),rt=R.propTypes||{};rt.sideCar,function(e,t){if(null==e)return{};var i={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;i[r]=e[r]}}(rt,["sideCar"]);it.propTypes={};var ot=it;const at=e=>t=>{const[i,s]=r().useState(-1),n=o().ITEM_ACTION_TRIGGERED((e=>{let{idx:i}=e;t.enableFullscreen&&s(i)})).done(t.eventsListener);return r().createElement(r().Fragment,null,r().createElement(e,(0,a.Z)({},t,{eventsListener:n}),-1!==i&&t.enableFullscreen&&h().createPortal(r().createElement(ot,{className:"fullscreen-focus-lock"},r().createElement(p,{deviceType:t.deviceType,options:t.fullscreenOptions,setFullscreenIdx:s,fullscreenIdx:i,items:t.items,viewMode:t.viewMode})),document.body),t.children))};var st=u(91753),nt=function(e){var t=function(e){var t=0;if(void 0===e||0===e.length)return t;for(var i=0;i0){var o=r[0].replace(/\//g,"").split("_").map((function(e){return Number(e)})),a=o[0],s=o[1];a>0&&s>0&&(i=!0,t={originWidth:a,originHeight:s})}}catch(e){i=!1}if(!i)try{var n=/wm_(.*)\//.exec(e);if(n&&n[0]&&n[0].length>0){var l=n[1];l.length>0&&(t.watermark=l)}}catch(e){i=!1}if(!i)try{e.split("#").pop().split("&").map((function(e){return e.split("=")})).forEach((function(e){t[e[0]]=isNaN(Number(e[1]))?String(e[1]):Number(e[1])}))}catch(e){i=!1}return t},_t=function(e,t){return void 0===t&&(t=0),function(e){return!!(e.src||e.type&&e.html)}(e)?function(e,t){var i,r,o,a=yt(e.src);"video"===(null==(i=e.type)?void 0:i.toLowerCase())&&(null!=(r=e.src)&&r.includes("youtube")||null!=(o=e.src)&&o.includes("vimeo"))&&(a.originWidth=1920,a.originHeight=1080),a.width=e.width||a.originWidth||a.originalWidth||a.posterWidth||1,a.height=e.height||a.originHeight||a.originalHeight||a.posterHeight||1;var s,n=e.settings&&e.settings.focalPoint,l=a.watermark,u=e.imageToken||e.token||a.token,c=(e.type||"image").toLowerCase(),h=ct({itemId:lt(e.slug)||(lt(e.title||e.id)||nt(e.src||e.html||t))+"_"+t,mediaUrl:pt(e.src),metaData:Object.assign(ct({type:c,alt:e.alt||"",title:e.title||"",description:e.description||"",name:gt(e.src),fileName:gt(e.src),link:mt(e.link,e.target),width:a.width,height:a.height,sourceName:"private"},"customButtonText"in e&&{customButtonText:e.customButtonText}),n?{focalPoint:n}:{},l?{watermarkStr:l}:{}),orderIndex:t},u&&{token:u});if("text"===c){var m=e.style;h.metaData.height=a.height||500,h.metaData.width=a.width||500*m.layoutRatio,h.metaData.textStyle={width:h.metaData.width,height:h.metaData.height,backgroundColor:m.fillColor},h.metaData.html=h.editorHtml=e.html}if("video"===c){var d={};e.thumbnail&&(d=yt(e.thumbnail));var p=(s=pt(e.thumbnail),null!==/^.*\.(jpeg|jpg|webp|png|jpe).*$/.exec(s)?pt(e.thumbnail):a.posterUri);h.metaData.posters=[{url:p,width:d.width||a.width,height:d.height||a.height}],h.isExternal=0===e.src.indexOf("http"),h.isExternal||dt(e.src)?(h.metaData.source=e.src.indexOf("youtube.com")>0?"youtube":e.src.indexOf("vimeo.com")>0?"vimeo":"wix",h.metaData.videoUrl=e.src):h.metaData.qualities=[{width:a.width,height:a.height,quality:a.height+"p",formats:[dt(e.src)?"wix":e.src.split(/#|\?/)[0].split(".").pop().trim()]}]}return h}(e,t):function(e,t){return{itemId:nt(t+"_"+(e.uri||e.alt||t)),mediaUrl:e.uri||"",metaData:{height:e.height||1,lastModified:Date.now(),link:mt(e.link,e.target),title:e.title||"",description:e.description||"",alt:e.alt||"",sourceName:"private",tags:[],width:e.width||1},orderIndex:t}}(e,t)};function vt(e){return i=(t=e).dataId,r=t.title,o=t.description,a=t.image,s=a.uri,n=a.width,l=a.height,u=a.link,{itemId:i,mediaUrl:s,orderIndex:0,metaData:{type:"image",height:l,width:n,title:r,description:o,sourceName:"private",link:{url:null==u?void 0:u.href,type:"web",target:null==u?void 0:u.target}}};var t,i,r,o,a,s,n,l,u}const ft=e=>{try{return e.map(((e,t)=>"3d"===e.type?function(e,t){const i=_t({...e,type:"video"},t),r={width:300,height:300};return{mediaUrl:e.src,orderIndex:t,itemId:i.itemId,metaData:{type:"3d",...r,poster:{...i.metaData.posters[0],...r},scene:{transform:{rotation:e.rotation&&`x${e.rotation.x}y${e.rotation.y}z${e.rotation.z}`,scale:e.scale&&`x${e.scale.x}y${e.scale.y}z${e.scale.z}`,position:e.position&&`x${e.position.x}y${e.position.y}z${e.position.z}`},controls:{enableAutoRotate:e.enableAutoRotate,enablePan:e.enablePan,enableRotate:e.enableRotate,enableZoom:e.enableZoom}},title:e.title,description:e.description,alt:e.alt}}}(e,t):_t(e,t))).map(((t,i)=>{const r=e[i];return r.secondaryMedia&&"video"!==t.metaData.type&&(r.secondaryMedia.type=t.metaData.type,t.secondaryMedia=_t(r.secondaryMedia,i)),t}))}catch(t){console.error("Wrong format for gallery items",e,t)}return[]};function Pt(e,t){return"wixSDK"===t?e=ft(e):"organizeMedia"===t&&(e=e.map(vt)),e}function bt(e){return It({newItems:e})}function It(e){let{newItems:t,currentItems:i=[]}=e;const{itemsToSet:r,shouldGetVideoUrls:o}=function(e){let t,i=!1;try{t=e.map((e=>{let{item:t,convertedToPlaceholder:r}=function(e){let t=!1;Et(e)&&(e=function(e){return{itemId:e.itemId,mediaUrl:e.metaData.posters[0].url,orderIndex:0,metaData:{...e.metaData,type:"image",isVideoPlaceholder:!0,videoPlaceholderUrl:`https://video.wixstatic.com/video/${Ot(e)}/480p/mp4/file.mp4`,height:e.metaData.posters[0].height,width:e.metaData.posters[0].width}}}(e),t=!0);return{item:e,convertedToPlaceholder:t}}(e);if(!i&&r&&(i=!0),"string"==typeof t.metaData)try{t={...t,metaData:JSON.parse(t.metaData)}}catch(e){console.error("Failed parse item metaData",e)}return t}))}catch(t){console.error("corrupt items",e,"returning old items instead",t)}return{itemsToSet:t,shouldGetVideoUrls:i}}(t);return{items:i.concat(r),shouldGetVideoUrls:o}}function St(e){let{newItems:t,currentItems:i=[]}=e;return function(e){const t=e.map((e=>Et(e)?function(e){const t=Ot(e);return(0,st.getVideoURLs)(t).then((t=>(e.metaData.qualities=t.filter((e=>"MP4"===e.type)).map((t=>{const i=t.url,r=t.quality,o=parseInt(r,10);return{url:i,height:o,width:Math.floor(o*e.metaData.width/e.metaData.height),quality:r,formats:["mp4"]}})),e.metaData.videoUrl=void 0,e.metaData.ghostItem=!0,e))).catch((t=>(e.metaData.ghostItem=!0,e)))}(e):Promise.resolve(e)));return Promise.all(t)}(t).then((e=>It({newItems:e,currentItems:i}).items))}function Et(e){return!e.metaData.ghostItem&&(e.metaData.videoUrl&&e.metaData.videoUrl.includes("wix:video://")||"video"===e.metaData.type&&e.mediaUrl&&!e.metaData.videoUrl)}function Ot(e){return e.metaData.videoUrl&&e.metaData.videoUrl.includes("wix:video://")?e.metaData.videoUrl.split("/")[3]||e.itemId:e.mediaUrl}class Tt{constructor(){(0,M.Z)(this,"promise",void 0),(0,M.Z)(this,"reject",void 0),(0,M.Z)(this,"resolve",void 0),this.promise=new Promise(((e,t)=>{this.reject=t,this.resolve=e}))}}class Lt{constructor(){(0,M.Z)(this,"itemDimensionsCache",{}),(0,M.Z)(this,"itemsDimensions",{}),(0,M.Z)(this,"preloadedItems",{})}preloadItem(e,t){if(e&&e.itemId&&e.mediaUrl)try{const i=e.itemId;if(this.itemsDimensions[i])return;if(void 0!==this.preloadedItems[i])return;return this.preloadedItems[i]=new Image,this.preloadedItems[i].src="video"===e.metaData.type?e.metaData.posters[0].url:e.mediaUrl,"function"==typeof t&&(this.preloadedItems[i].onload=e=>{t(e)}),this.preloadedItems[i]}catch(t){return void console.error("Could not preload item",e,t)}}addSentDimensionsToCache(e){e.forEach((e=>{this.itemDimensionsCache[e.mediaUrl]=e}))}isDimensionless(e){try{if(!e.metaData.height||!e.metaData.width)return!0;if(e.metaData.height<=1||e.metaData.width<=1)return!0}catch(t){console.error("corrupt item, cant check for dimensions",e,t)}return!1}isSSR(){try{return!window}catch(e){return!0}}loadItemsDimensionsIfNeeded(e,t){if(this.isSSR())return;if(!(e&&e.length>0))return;const i=e.filter((e=>{try{return!this.itemDimensionsCache[e.mediaUrl]&&this.isDimensionless(e)}catch(e){return!1}}));if(!i.length)return;const r=i.map((()=>new Tt));i.forEach(((e,t)=>{const i=r[t];this.preloadItem(e,(t=>{try{const r=t.srcElement,o=e.itemId,a=e.mediaUrl,s={width:r.width,height:r.height,measured:!0,itemId:o,mediaUrl:a};this.itemsDimensions[o]=s,i.resolve(this.itemsDimensions[o])}catch(e){console.error("Could not calc element dimensions",e)}}))})),Promise.all(r.map((e=>e.promise))).then((i=>{this.addSentDimensionsToCache(i);const r=e.map((e=>this.addDimensionsFromCache(e)));t(r)}))}addDimensionsFromCache(e){const t=this.itemDimensionsCache[e.mediaUrl];return t?{...e,metaData:{...e.metaData,width:t.width,height:t.height},measured:!0}:null}}const wt=e=>!!e.mediaUrl||e.metaData&&!!e.metaData.html,At=function(e,t,r,o,a){void 0===r&&(r=50);const s=(0,i.useRef)(new Lt),n=(0,i.useMemo)((()=>Pt(e,t)),[e,t]),l=()=>a?n:n.slice(0,r),[u,c]=(0,i.useState)(bt(l()).items),h=(0,i.useRef)(u),m=e=>{c(e),h.current=e};(0,i.useEffect)((()=>{d(l())}),[n]);const d=function(e,t){void 0===t&&(t=[]);const{items:i,shouldGetVideoUrls:r}=bt(e);_(t.concat(i)),r&&St({newItems:e,currentItems:t}).then(_),s.current.loadItemsDimensionsIfNeeded(h.current,m)},p=async e=>g(e),g=async e=>n.slice(e,e+r),y=(e,t)=>{const i=h.current;d(e,i.slice(0,t||i.length))},_=e=>{const t=e.filter(wt);m(t||h.current)};return{itemsToRender:u,handleGetMoreItemsRequest:e=>{(e=>{(o||p)(e).then((t=>{y(t,e)}))})(e)},addExternalItems:e=>{y(Pt(e,t))}}},Zt=e=>t=>{const{disableItemProcessors:a,itemsSrc:s,isExternalPagination:n,totalItemsCount:l,items:u,addedItems:c,...h}=t,{itemsToRender:m,handleGetMoreItemsRequest:d,addExternalItems:p}=At(a?[]:u,s,void 0,void 0,n);(0,i.useEffect)((()=>{c&&(null==c?void 0:c.length)>0&&p(c)}),[c]);const g=n?t.eventsListener:o().NEED_MORE_ITEMS((e=>{d(e)})).done(t.eventsListener),y={...h,items:a?u:m,totalItemsCount:n?l||1/0:u.length,eventsListener:g};return r().createElement(e,y)};var xt=u(42591),Ct=u(49994);const Nt=e=>t=>{const{flattenOptions:i,flattenFullscreenOverrides:o}=t,{options:s,fullscreenOptions:n}=function(e,t){const i=(0,xt.ZP)((0,Ct.V4)(e),!0);if(t)return{options:i,fullscreenOptions:{...e,...t}};return{options:i,fullscreenOptions:void 0}}(i,o);return r().createElement(r().Fragment,null,r().createElement(e,(0,a.Z)({},t,{options:s,fullscreenOptions:n,flattenOptions:i})))};var Rt=u(82470);function Dt(e){const{manualOptions:t,items:i,rawOptions:r=e.options}=e,o=i.slice(0,20).map((e=>`${function(e){void 0===e&&(e="");let t=0;for(let i=0;i {\n const mainFunc = (galleryEle) => {\n const computedStyle = window.getComputedStyle(galleryEle);\n const computedStyles = {};\n // search css variables to query\n const cssVariables = [];\n const stylesheets = document.styleSheets;\n for (let i = 0; i < stylesheets.length; i++) {\n try {\n const rules = stylesheets[i].rules || stylesheets[i].cssRules;\n for (let j = 0; j < rules.length; j++) {\n const rule = rules[j];\n const style = rule.style;\n if (style) {\n for (let k = 0; k < style.length; k++) {\n const prop = style[k];\n if (prop.startsWith('--')) {\n if (prop.includes('ProGallery-')) {\n cssVariables.push(prop);\n }\n }\n }\n }\n }\n } catch (e) {\n }\n }\n const cssVariablesMap = cssVariables.map((item) => {\n return {\n name: item,\n value: computedStyle.getPropertyValue(item),\n }\n }).filter((item) => item.value);\n // get computed styles\n for (let i = 0; i < cssVariablesMap.length; i++) {\n computedStyles[cssVariablesMap[i].name] = cssVariablesMap[i].value;\n }\n const options = Object.entries(computedStyles).reduce((res, [key, value]) => {\n const keyNameStart = key.indexOf('ProGallery-') + 'ProGallery-'.length;\n const keyName = key.substring(keyNameStart);\n res[keyName] = JSON.parse(value);\n return res;\n }, {});\n const optionsStr = Object.entries({...${JSON.stringify(i)}, ...options, ...${JSON.stringify(r)}})\n .map(([key, value]) => ([key, JSON.stringify(value)]))\n .filter(([key, value]) => key.includes('layoutParams_'))\n .map((keyval) => keyval.join(":")).join('|');\n return optionsStr;\n };\n return mainFunc(ele);\n }`}(r,t);return{hrefStr:`/_serverless/pro-gallery-native-layout-fixer/layoutCssNative?id=${e.id}&items=${o}&container=`,getOptions:a}}function Mt(e){const{hrefStr:t,getOptions:i}=Dt(e);return r=`\n var nativeComp = document.getElementById("${e.id}"), nativeRect = nativeComp.getBoundingClientRect();\n var pgMeasures = {top: nativeRect.top, width: nativeRect.width, height: Number(getComputedStyle(nativeComp).getPropertyValue("height").replace("px", ""))};\n var options = (${i})(ele);\n `,`\n var ele = document.getElementById('${"pro-gallery-"+e.id}');\n ${r}\n var isVertical = options.includes('layoutParams_structure_scrollDirection:"VERTICAL"');\n var layoutFixerUrl = '${t}' + pgMeasures.top + '_' + pgMeasures.width + '_' + pgMeasures.height + '_' + window.innerHeight + '&options=' + options;\n document.getElementById('${"layout-fixer-style-"+e.id}').setAttribute('href', encodeURI(layoutFixerUrl));\n});\n\n `;var r}const Gt=e=>{try{var t;const i="undefined"!=typeof window?((null==(t=window.document.getElementById("layout-fixer-style-"+e.id))?void 0:t.getAttribute("href"))||"").replace(/^.*\/\/[^/]+/,""):"";return r().createElement("div",{id:"layout-fixer-"+e.id,key:"layout-fixer-"+e.id,style:{display:"none"}},r().createElement("link",{rel:"stylesheet",id:"layout-fixer-style-"+e.id,href:i}),r().createElement("script",{dangerouslySetInnerHTML:{__html:`try {\n window.requestAnimationFrame(function() {\n ${Mt(e)}\n } catch (e) {\n console.warn('Cannot set layoutFixer css', e);\n }`}}))}catch(e){return r().createElement("div",{id:"layoutFixerErrors",style:{display:"none"}},e.toString())}},kt=e=>t=>r().createElement(e,t,t.children,!t.disableLayoutFixer&&(t.isPrerenderMode||!t.firstInteractionRecorded)&&r().createElement(Gt,{isPrerenderMode:t.isPrerenderMode,items:t.items,id:t.id,options:t.flattenOptions,manualOptions:t.manualOptions}));var Ht=u(98047),Bt=u(60484),Ft=u.n(Bt),zt=u(17229),Ut=u(37178);var Wt=new class{constructor(){this.lastHeight=void 0,this.lastOffsetTop=void 0,this.lastInfiniteScroll=void 0,this.lastIsHorizontal=void 0,this.setWixHeight=this.setWixHeight.bind(this),this.protectGalleryWidth=this.protectGalleryWidth.bind(this),this.protectGalleryHeight=this.protectGalleryHeight.bind(this)}getViewportScaleRatio(e){const t=void 0!==zt.Z&&zt.Z.isGallery,i=Ht.y.shouldDebug("ignoreScaleRatio")||Ht.y.isiOS()&&t;return e||!Ht.y.isMobile()||Ht.y.isMobileViewer()||!Ht.y.isSite()||i?1:320/Ht.y.getScreenWidth()}protectGalleryWidth(e){let t;return Ht.y.isSite()&&(t=Number(Ht.y.parseGetParam("width"))),t=Ht.y.browserIs("chromeIos")&&t||document.body.clientWidth,Ht.y.isMobile()&&(t=Math.floor(t/this.getViewportScaleRatio())),Math.min(Math.floor(e),t)}protectGalleryHeight(e,t){void 0===t&&(t=0);return Math.floor(e-t)}setWixHeight(e){let{height:t,offsetTop:i=0,styleParams:r,container:o,numOfItems:a,isInfinite:s,isFixedHorizontlaGalleryRatio:n,updatedHeight:l,setHeightImp:u,viewMode:c,clearHeight:h}=e;c&&Ht.y.updateViewMode(c);const m=()=>{const e=()=>.6*zt.Z.screen.height,t=()=>(9*o.galleryWidth/16+((r[Ut.Z.layoutParams.thumbnails.enable]&&[d.Z.layoutParams_thumbnails_alignment.TOP,d.Z.layoutParams_thumbnails_alignment.BOTTOM].indexOf(r[Ut.Z.layoutParams.thumbnails.alignment])>=0?r[Ut.Z.layoutParams.thumbnails.size]||120:0)+(r.externalInfoHeight>0?r.externalInfoHeight:0)))*Number(d.Z.isLayout("SLIDER")(r)?.85:1)+i;return 0===a?390:r[Ut.Z.layoutParams.structure.scrollDirection]===d.Z[Ut.Z.layoutParams.structure.scrollDirection].HORIZONTAL?Math.min(e(),t()):!s&&!n&&e()},p=(e,t)=>{let i=Math.round(e*this.getViewportScaleRatio(t)),o=!1;(s||n)&&(o=!0),l&&(o=!0,i=Math.min(l,e));const a=m();return(Ht.y.isEditor()||Ht.y.isInAlbumsBuilder())&&a&&(r[Ut.Z.layoutParams.structure.scrollDirection]===d.Z[Ut.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&!n||r[Ut.Z.layoutParams.structure.scrollDirection]===d.Z[Ut.Z.layoutParams.structure.scrollDirection].VERTICAL&&!s)&&(o=!1,(i>a||Ht.y.isInAlbumsBuilder())&&(i=a,o=!0)),o&&i},g=()=>{this.lastOffsetTop=i,this.lastInfiniteScroll=!r[Ut.Z.behaviourParams.gallery.vertical.loadMore.enable],this.lastIsHorizontal=r[Ut.Z.layoutParams.structure.scrollDirection]===d.Z[Ut.Z.layoutParams.structure.scrollDirection].HORIZONTAL},y=(e,t,i)=>{e&&t&&i&&("function"==typeof h?(this.lastHeight=0,h()):console.warn("trying to clearHeight() for responsive gallery, clearHeight is not a function"))};if(!(t<=0)){if((()=>{const e=Ft().isUndefined(this.lastIsHorizontal),t=r[Ut.Z.layoutParams.structure.scrollDirection]===d.Z[Ut.Z.layoutParams.structure.scrollDirection].HORIZONTAL!==this.lastIsHorizontal,i=!r[Ut.Z.behaviourParams.gallery.vertical.loadMore.enable]!==this.lastInfiniteScroll,o=!e,a=t||i,u=!!r.responsive,c=s||n||l||!(s||n)&&!u&&a&&o;return c||y.call(this,u,a,o),g.call(this),c}).call(this)){t=Math.round(t+i);const e=Math.round(this.lastHeight+this.lastOffsetTop),o=p.call(this,t,!!r.responsive);this.lastHeight=o;const a=((e,t)=>{if(e){if(Ht.y.isVerbose()&&console.log("updating height",e),Math.abs(t-e)<6||0===e)return Ht.y.isVerbose()&&console.log("Skipping Wix height change: was too small "+t+", now it's "+e),t;Ht.y.isVerbose()&&console.warn("Changing wix height from: "+t+" to: "+e),u(Math.round(e))}return e})(o,e);return g.call(this),a}return this.lastHeight}console.warn("Wix setHeight called with height less than 0")}};function jt(e){function t(e){return e.imageInfoType===d.Z.layoutParams_info_layout.SEPARATED_BACKGROUND||e.imageInfoType===d.Z.layoutParams_info_layout.ATTACHED_BACKGROUND?e.controllers_layoutParams_info_horizontalPadding+30:e.controllers_layoutParams_info_horizontalPadding}return{paddingBottom:e.controllers_layoutParams_info_verticalPadding+15+"px",paddingTop:e.controllers_layoutParams_info_verticalPadding+15+"px",paddingRight:t(e)+"px",paddingLeft:t(e)+"px",boxSizing:"border-box",height:"100%"}}function Vt(e){return e.style.width<200}function $t(e){const{options:t,style:i}=e;if(d.Z.isLayout("SLIDESHOW")(t))return!1;let r;return r=t[Ut.Z.layoutParams.crop.enable]&&t[Ut.Z.layoutParams.crop.method]===d.Z[Ut.Z.layoutParams.crop.method].FIT?"landscape"===i.orientation?i.width/i.ratio<=90:i.height*i.ratio<=90:i.width<=90||i.height<=90,r}function Yt(e){return e.style.height<150}function Kt(e){return e.style.width{let{}=e;return r().createElement(qt.Z,{size:"24"})};Jt.displayName="love_full";var Qt=Jt,ei=u(17616);const ti=e=>{let{}=e;return r().createElement(ei.Z,{size:"24"})};ti.displayName="love_empty";var ii=ti;class ri extends r().Component{constructor(e){super(e),this.toggleLove=this.toggleLove.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.getMobileEnabledClick=this.getMobileEnabledClick.bind(this),this.state={animate:!1}}onKeyPress(e){switch(e.keyCode||e.charCode){case 32:case 13:return e.preventDefault(),e.stopPropagation(),this.toggleLove(e),!1}}toggleLove(e){e.stopPropagation(),e.preventDefault(),this.props.actions.eventsListener(Xt.LOVE_BUTTON_CLICKED,this.props),this.setState({animate:!this.props.isLoved})}buttonClasssName(){const e=[];return e.push("info-element-social-love"),this.props.isLoved?e.push("love_full info-element-loved"):e.push("love_empty"),this.state.animate&&e.push("love-animation"),e.join(" ")}getMobileEnabledClick(e){return this.props.isMobile?{onTouchEnd:e}:{onClick:e}}createLoveCounter(){const e=this.props.loveCount||0;return this.props.showCounter&&e>0?r().createElement("i",{"data-hook":"love-counter",className:"info-member info-element-social-love-count"},e):null}render(){const e=this.props.customLoveCounter||this.createLoveCounter(),t=this.props.viewMode===d.Z.viewMode.SITE||this.props.viewMode===d.Z.viewMode.SEO?this.getMobileEnabledClick(this.toggleLove):{onClick:e=>e.stopPropagation()},i=this.props.isLoved?{color:"red"}:{};return r().createElement("span",(0,a.Z)({className:"info-member info-element-social-love info-element-social-button","data-hook":"love-button"},t,{onKeyDown:this.onKeyPress,tabIndex:d.Z.isLayout("SLIDESHOW")(this.props.options)&&this.props.activeIndex===this.props.idx?0:-1,role:"checkbox","aria-checked":this.props.isLoved,"aria-label":"Love"}),r().createElement("button",{"data-hook":"love-icon",className:this.buttonClasssName(),style:i,tabIndex:-1},this.props.isLoved?r().createElement(Qt,null):r().createElement(ii,null)),e)}}var oi=ri,ai=u(62310);const si=e=>{let{}=e;return r().createElement(ai.Z,{size:"24"})};si.displayName="share_store";var ni=si,li=u(78321),ui=u(9608);const ci=e=>{let{}=e;return r().createElement(ui.Z,null)};ci.displayName="download";var hi=ci;class mi extends r().Component{constructor(e){super(e),this.onDownloadClick=this.onDownloadClick.bind(this),this.onDownloadKeyPress=this.onDownloadKeyPress.bind(this),this.onDownloadImageVideoKeyPress=this.onDownloadImageVideoKeyPress.bind(this),this.onDownloadTextKeyPress=this.onDownloadTextKeyPress.bind(this),this.getAdditionalAttributes=this.getAdditionalAttributes.bind(this)}onDownloadImageVideoKeyPress(e,t){switch(e.keyCode||e.charCode){case 32:case 13:return e.stopPropagation(),e.preventDefault(),zt.Z.open(t,"_blank"),this.props.actions.eventsListener(Xt.DOWNLOAD_BUTTON_CLICKED,this.props),!1}}onDownloadTextKeyPress(e){switch(e.keyCode||e.charCode){case 32:case 13:return e.stopPropagation(),e.preventDefault(),this.props.actions.eventsListener(Xt.TEXT_DOWNLOAD_BUTTON_CLICKED,this.props),!1}}async onDownloadClick(e,t){const{type:i,isDemo:r,actions:o,customDownloadUrl:a}=this.props;if("text"===i)e.stopPropagation(),e.preventDefault(),o.eventsListener(Xt.TEXT_DOWNLOAD_BUTTON_CLICKED,this.props);else if(!r){e.stopPropagation(),e.preventDefault();const i=t;if(a){const{url:e,photoId:t}=this.props;(0,li.W)(a,e,t)}else zt.Z.open(i,"_blank");this.props.actions.eventsListener(Xt.DOWNLOAD_BUTTON_CLICKED,this.props)}}onDownloadKeyPress(e,t){const{type:i,isDemo:r}=this.props;"text"===i?this.onDownloadTextKeyPress(e):r||this.onDownloadImageVideoKeyPress(e,t)}getAdditionalAttributes(e){if("text"===this.props.type)return{};const t={download:"download"};return this.props.isDemo||(t.target="_blank",t.href=e),t}render(){const{options:e,isDemo:t,createUrl:i}=this.props,o="info-member info-element-social-download "+(e.allowSocial?"":" pull-right ")+" info-element-social-button",s=r().createElement("i",{className:t?" inactive":""},r().createElement(hi,{size:"20"})),n=e.isStoreGallery?d.Z.urlSizes.DOWNLOAD_SAMPLE:d.Z.urlSizes.DOWNLOAD,l=i(n,d.Z.urlTypes.VIDEO)||i(n,d.Z.urlTypes.HIGH_RES);return r().createElement("div",(0,a.Z)({className:o,"data-hook":"item-download","aria-label":"Download",role:"button",tabIndex:d.Z.isLayout("SLIDESHOW")(e)&&this.props.activeIndex===this.props.idx?0:-1,onClick:e=>this.onDownloadClick(e,l),onKeyDown:e=>this.onDownloadKeyPress(e,l)},this.getAdditionalAttributes(l)),s)}}var di=mi;function pi(e){let{isNewInfoElements:t,shouldControlHorizontalAlignment:i,style:r,horizontalAlignment:o,paddingBottom:a,paddingTop:s,paddingRight:n,paddingLeft:l}=e;const u={...r,textAlign:o,justifyContent:o};return!1===i&&delete u.textAlign,t?u:r||{}}class gi extends r().Component{getSocialShare(){const{options:e,id:t,actions:i}=this.props;if(e.allowSocial){const o=r().createElement("i",{className:"share-store"},r().createElement(ni,null)),a="info-member info-element-social-share info-element-social-button";if(this.props.viewMode===d.Z.viewMode.SITE||this.props.viewMode===d.Z.viewMode.SEO){const s=!this.props.shouldUseNewSocialSharePopup&&d.Z.isLayout("SLIDESHOW")(e)?i.getShare():"";return r().createElement("div",{className:a,"data-hook":"info-element-social-button",key:"item-social-share-"+t,onClick:e=>i.toggleShare(e,!0)},o,s)}return r().createElement("div",{className:a,"data-hook":"info-element-social-button",key:"item-social-share-"+t,onClick:e=>{e.stopPropagation(),e.preventDefault()}},o)}return""}getLoveButton(){const{options:e,isNarrow:t,isSmallItem:i}=this.props;return e.loveButton?r().createElement(oi,(0,a.Z)({},this.props,{itemId:this.props.photoId,showCounter:e.loveCounter&&!i&&!t})):null}getDownload(){const{options:e,isDemo:t,viewMode:i}=this.props;return e.allowDownload&&(i!==d.Z.viewMode.SITE&&i!==d.Z.viewMode.SEO||!t)?r().createElement(di,this.props):null}render(){const{isNewInfoElements:e,options:t,id:i,showShare:o,isSmallItem:a,isNarrow:s,isShort:n,isVerticalContainer:l}=this.props,u=this.getSocialShare(),c=this.getLoveButton(),h=this.getDownload(),m=[[o&&!e,"hidden"],[a,"small-item"],[n,"short-item"],[s,"narrow-item"],[l,"vertical-item"],[t[Ut.Z.layoutParams.thumbnails.enable],"with-arrows"],[t.allowSocial||t.loveButton||t.allowDownload,"populated-item"],["external"===this.props.internalOrExternal||d.Z.hasExternalHorizontalPlacement(t[Ut.Z.layoutParams.info.placement])||d.Z.hasExternalVerticalPlacement(t[Ut.Z.layoutParams.info.placement]),"text-external-item"],[!e,"info-element-social-absolute"],[e,"info-element-social-new-info-elements"]].filter((e=>e[0])).map((e=>e[1])).join(" "),p=null==e?{}:pi(this.props);return r().createElement("div",{style:p,className:"info-element-social info-align-"+t.galleryTextAlign+" "+m,key:"item-social-"+i,"data-hook":"item-social"},c,h,u)}}class yi extends Ht.Z{constructor(){super()}pick(e,t){const i={};return Object.entries(e||{}).forEach((e=>{let[r,o]=e;t.indexOf(r)>=0&&(i[r]=o)})),i}debounce(e,t){var i=this;let r;return function(){for(var o=arguments.length,a=new Array(o),s=0;s{e.apply(i,a)}),t)}}get(e,t,i){const r=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce(((e,t)=>null!=e?e[t]:e),e);return void 0===r||r===e?i:r}flipGalleryHorizontalAlign(e){return"flex-start"===e?"flex-end":"flex-end"===e?"flex-start":e}}const _i=new yi,vi=e=>{let{size:t,...i}=e;return r().createElement("svg",(0,a.Z)({viewBox:"0 0 8 17",fill:"currentColor",width:t||"8",height:t||"17"},i),r().createElement("path",{d:"M 7.21 0.91C 7.21 1.79 7.21 3.38 7.21 3.38 7.21 3.38 5.38 3.19 4.92 3.89 4.67 4.27 4.82 5.39 4.8 6.19 5.6 6.19 6.42 6.19 7.22 6.19 7.02 7.12 6.87 7.76 6.72 8.57 6.03 8.57 4.79 8.57 4.79 8.57 4.79 8.57 4.79 16.23 4.79 16.23 4.79 16.23 2.5 16.23 1.43 16.23 1.43 13.87 1.43 11.11 1.43 8.6 0.9 8.6 0.52 8.6-0 8.6-0 7.71-0 7.07-0 6.19 0.5 6.19 0.9 6.19 1.41 6.19 1.48 4.42 1.51 2.68 2.39 1.79 3.38 0.79 4.32 0.91 7.21 0.91Z",fill:"currentColor"}))};vi.displayName="facebook";var fi=vi;const Pi=e=>{let{size:t,...i}=e;return r().createElement("svg",(0,a.Z)({viewBox:"0 0 15 15",fill:"currentColor",width:t||"15",height:t||"15"},i),r().createElement("path",{d:"M 7.5 0.01C 3.36 0.01 0 3.37 0 7.5 0 10.69 1.99 13.4 4.79 14.49 4.74 14.01 4.69 13.04 4.83 12.44 4.97 11.85 5.73 8.65 5.73 8.65 5.73 8.65 5.5 8.19 5.5 7.52 5.5 6.46 6.11 5.66 6.88 5.66 7.53 5.66 7.85 6.15 7.85 6.74 7.85 7.39 7.43 8.37 7.21 9.28 7.03 10.04 7.6 10.66 8.34 10.66 9.7 10.66 10.74 9.23 10.74 7.16 10.74 5.34 9.43 4.06 7.56 4.06 5.38 4.06 4.11 5.69 4.11 7.37 4.11 8.03 4.36 8.73 4.68 9.11 4.74 9.19 4.75 9.25 4.73 9.33 4.67 9.57 4.54 10.09 4.52 10.2 4.48 10.34 4.41 10.37 4.26 10.3 3.31 9.86 2.71 8.46 2.71 7.34 2.71 4.93 4.46 2.72 7.76 2.72 10.4 2.72 12.46 4.61 12.46 7.13 12.46 9.76 10.8 11.88 8.5 11.88 7.73 11.88 7 11.48 6.75 11 6.75 11 6.37 12.46 6.28 12.82 6.12 13.43 5.71 14.19 5.4 14.7 6.07 14.89 6.77 15 7.5 15 11.64 15 14.99 11.64 14.99 7.5 14.99 3.37 11.64 0.01 7.5 0.01Z",fill:"currentColor"}))};Pi.displayName="pinterest";var bi=Pi;const Ii=e=>{let{size:t,...i}=e;return r().createElement("svg",(0,a.Z)({viewBox:"0 0 16 13",fill:"currentColor",width:t||"16",height:t||"13"},i),r().createElement("path",{d:"M 15.99 1.6C 15.91 2.19 15.04 2.79 14.51 3.23 15.03 10.77 6.33 15.48 0.01 11.66 1.78 11.67 3.78 11.19 4.83 10.21 3.3 9.96 2.21 9.28 1.79 7.94 2.24 7.9 2.87 8.04 3.17 7.85 1.77 7.33 0.66 6.52 0.59 4.68 1.09 4.73 1.35 5.02 1.97 4.95 1.06 4.38 0.03 2.21 0.96 0.61 2.61 2.4 4.66 3.79 7.87 4.05 7.08 0.72 11.57-1.34 13.59 1.06 14.38 0.89 15.04 0.61 15.71 0.33 15.44 1.09 14.88 1.57 14.33 2.06 14.92 1.95 15.55 1.87 15.99 1.6Z",fill:"currentColor"}))};Ii.displayName="twitter";var Si=Ii;const Ei=e=>{let{size:t,...i}=e;return r().createElement("svg",(0,a.Z)({viewBox:"0 0 17 13",fill:"currentColor",width:t||"17",height:t||"13"},i),r().createElement("path",{d:"M 16.48 0.01C 16.48 0.01 16.11 0.01 16.11 0.01 16.11 0.01 16.11-0 16.11-0 16.11-0 16.1 0.01 16.1 0.01 16.1 0.01 0.96 0.01 0.96 0.01 0.96 0.01 0.95-0 0.95-0 0.95-0 0.94 0.01 0.94 0.01 0.94 0.01 0.52 0.01 0.52 0.01 0.23 0.01 0 0.25 0 0.55 0 0.55 0 12.46 0 12.46 0 12.76 0.23 13 0.52 13 0.52 13 16.48 13 16.48 13 16.77 13 17 12.76 17 12.46 17 12.46 17 0.55 17 0.55 17 0.25 16.77 0.01 16.48 0.01ZM 6.23 5.83C 6.23 5.83 1.05 11.15 1.05 11.15 1.05 11.15 1.05 1.47 1.05 1.47 1.05 1.47 6.23 5.83 6.23 5.83ZM 7.05 6.51C 7.05 6.51 8.2 7.48 8.2 7.48 8.3 7.56 8.41 7.6 8.53 7.6 8.65 7.6 8.76 7.56 8.86 7.48 8.86 7.48 10.01 6.51 10.01 6.51 10.01 6.51 15.28 11.92 15.28 11.92 15.28 11.92 1.78 11.92 1.78 11.92 1.78 11.92 7.05 6.51 7.05 6.51ZM 10.83 5.83C 10.83 5.83 15.95 1.52 15.95 1.52 15.95 1.52 15.95 11.09 15.95 11.09 15.95 11.09 10.83 5.83 10.83 5.83ZM 14.81 1.09C 14.81 1.09 8.53 6.36 8.53 6.36 8.53 6.36 2.25 1.09 2.25 1.09 2.25 1.09 14.81 1.09 14.81 1.09Z",fill:"currentColor"}))};Ei.displayName="email";var Oi=Ei;const Ti=e=>{let{size:t,...i}=e;return r().createElement("svg",(0,a.Z)({viewBox:"0 0 8 15",fill:"currentColor",width:t||"8",height:t||"15"},i),r().createElement("path",{d:"M 7.99 6.38C 7.99 6.38 5 6.38 5 6.38 5 6.38 5 10.53 5 10.53 5 11.28 5.09 11.7 6.09 11.7 6.09 11.7 7.99 11.7 7.99 11.7 7.99 11.7 7.99 14.89 7.99 14.89 7.99 14.89 6.99 15 5.89 15 3.3 15 2 13.29 2 11.38 2 11.38 2 6.38 2 6.38 2 6.38 0.01 6.38 0.01 6.38 0.01 6.38 0.01 3.41 0.01 3.41 2.4 3.2 2.6 1.28 2.8 0 2.8 0 5 0 5 0 5 0 5 3.2 5 3.2 5 3.2 7.99 3.2 7.99 3.2 7.99 3.2 7.99 6.38 7.99 6.38Z",fill:"currentColor"}))};Ti.displayName="tumblr";var Li=Ti;class wi extends r().Component{constructor(e){super(e),this.handleKeyDown=this.handleKeyDown.bind(this),this.getShareArr=this.getShareArr.bind(this),this.buttons=[],this.shareArr=this.getShareArr(this.props.type),this.state={showShare:!1,focusedShareIcon:0}}getShareArr(e){return"text"===e?["facebook","twitter","tumblr","email"]:["facebook","twitter","pinterest","tumblr","email"]}handleKeyDown(e,t){if(this.state.showShare)switch(e.keyCode||e.charCode){case 38:case 37:case 33:return e.preventDefault(),e.stopPropagation(),_i.setStateAndLog(this,"Share Keypress",{focusedShareIcon:Math.max(1,this.state.focusedShareIcon-1)}),!1;case 39:case 40:case 34:return e.preventDefault(),e.stopPropagation(),_i.setStateAndLog(this,"Share Keypress",{focusedShareIcon:Math.min("text"===t?4:5,this.state.focusedShareIcon+1)}),!1;case 9:case 27:return e.preventDefault(),e.stopPropagation(),this.props.actions.toggleShare(e,!1),_i.setStateAndLog(this,"Share Keypress",{showShare:!1,focusedShareIcon:0}),!1}switch(e.keyCode||e.charCode){case 32:case 13:if(e.preventDefault(),e.stopPropagation(),this.state.showShare){const t={network:this.shareArr[this.state.focusedShareIcon-1],shareProps:this.props};this.props.actions.eventsListener(Xt.SHARE_BUTTON_CLICKED,t),this.props.actions.toggleShare(e,!1),_i.setStateAndLog(this,"Share Keypress",{showShare:!1,focusedShareIcon:0})}else this.props.actions.toggleShare(e,!0),_i.setStateAndLog(this,"Share Keypress",{showShare:!0,focusedShareIcon:1});return!1}return!0}componentDidUpdate(){this.props.showShare&&!this.state.showShare?_i.setStateAndLog(this,"props.showShare is true",{showShare:!0}):!this.props.showShare&&this.state.showShare&&_i.setStateAndLog(this,"props.showShare is false",{showShare:!1});try{if((this.props.viewMode===d.Z.viewMode.SITE||this.props.viewMode===d.Z.viewMode.SEO)&&!this.props.isMobile&&zt.Z.document&&zt.Z.document.activeElement&&zt.Z.document.activeElement.className){const e=zt.Z.document.activeElement,t=()=>String(e.className).indexOf("network-")>=0;if(!this.state.showShare&&t())return void this.socialShareBox.focus()}const e=this.state.focusedShareIcon;e>0&&this.buttons[e-1].focus()}catch(e){console.warn("Cannot focus on share icon",this.props.focus,e)}}getShareSvg(e){switch(e.toLowerCase()){case d.Z.socialNetworks.FACEBOOK:return fi;case d.Z.socialNetworks.TWITTER:return Si;case d.Z.socialNetworks.PINTEREST:return bi;case d.Z.socialNetworks.EMAIL:return Oi;default:case d.Z.socialNetworks.TUMBLR:return Li}}getShareItem(e,t){const i=this.shareArr.length,o=this.getShareSvg(e);return r().createElement("button",{className:`has-custom-focus network-${t+1}`+(this.props.viewMode===d.Z.viewMode.SITE||this.props.viewMode===d.Z.viewMode.SEO?"":" inactive "),style:{top:this.props.isVerticalContainer?`calc(100% / 6 * ${t+1} + -10px ${4===i?"+ 100% / 12":""})`:"",left:this.props.isVerticalContainer?"":`calc(100% / 6 * ${t+1} + -10px ${4===i?"+ 100% / 12":""})`},onClick:t=>{t.preventDefault(),t.stopPropagation();const i={network:e,shareProps:this.props};this.props.actions.eventsListener(Xt.SHARE_BUTTON_CLICKED,i)},"data-hook":e+"-share-button",ref:e=>this.buttons[t]=e,title:`Share on ${e}`,"aria-live":"assertive",role:"menuitem",tabIndex:-1,key:e+"-share-icon"},r().createElement(o,{size:"18"}))}render(){const{options:e,id:t,isVerticalContainer:i,actions:o,style:a,type:s}=this.props;if(e.allowSocial){const n=200;return r().createElement("div",{"data-hook":"social-share-box",className:"info-member info-element-social-share-box "+(this.props.showShare?" opened ":" hidden ")+(this.state.showShare?" hovered ":"")+(i?" vertical-item ":""),ref:e=>this.socialShareBox=e,onClick:e=>o.toggleShare(e,!1),onMouseOut:e=>o.toggleShare(e,!1),style:{transform:i?"translateY(-50%) "+(a.height>n?"":"scale("+a.height/n+")"):"translateX(-50%) "+(a.width>n?"":"scale("+a.width/n+")")},tabIndex:d.Z.isLayout("SLIDESHOW")(e)&&this.props.activeIndex===this.props.idx?0:-1,onKeyDown:e=>this.handleKeyDown(e,s),"aria-label":"Share",role:"menu",key:"item-social-share-container-"+t},this.shareArr.map(((e,t)=>this.getShareItem(e,t))))}return!1}}var Ai={HOVER:"HOVER",EXTERNAL:"EXTERNAL",SLIDESHOW:"SLIDESHOW",COLLECTIONS_HOVER:"COLLECTIONS_HOVER"};const Zi=16;function xi(){return r().createElement("svg",{className:"buy-icon",xmlns:"http://www.w3.org/2000/svg",width:"38",height:"34",viewBox:"0 0 38 34"},r().createElement("g",{fill:"none",fillRule:"evenodd"},r().createElement("path",{stroke:"currentColor",d:"M.7870039 2.59301758h6.9136797l3.7205137 22.89656932 22.3489443.012",strokeLinecap:"round",strokeLinejoin:"round"}),r().createElement("path",{stroke:"currentColor",d:"M28.0140389 4.49572754h9.017334L34.1188973 19.4727783H11.0089119",strokeLinecap:"round",strokeLinejoin:"round"}),r().createElement("path",{stroke:"currentColor",d:"M15.002193 28.5c1.3971616 0 2.502193 1.1042242 2.502193 2.5s-1.1050314 2.5-2.502193 2.5S12.5 32.3957758 12.5 31s1.1050314-2.5 2.502193-2.5zM27.5 31c0-1.3957758 1.1050314-2.5 2.502193-2.5s2.502193 1.1042242 2.502193 2.5-1.1050314 2.5-2.502193 2.5S27.5 32.3957758 27.5 31z"}),r().createElement("path",{fill:"currentColor",d:"M23 .50625185V11.4270815c0 .2795952-.2319336.5062518-.5.5062518-.2761424 0-.5-.2261351-.5-.5062518V.50625185C22 .22665667 22.2319336 0 22.5 0c.2761424 0 .5.2261351.5.50625185zM8 4h9v1H8z"}),r().createElement("path",{fill:"currentColor",d:"M25.53553353 8.0000001l.7071068.7071068-3.53553392 3.5355339-.70710676-.7071068z"}),r().createElement("path",{fill:"currentColor",d:"M19.0000001 8.70710647l.7071068-.7071068 3.5355339 3.53553392-.7071068.70710676z"})))}class Ci extends r().Component{render(){const{options:e,actions:t}=this.props,i=e.customButtonText||"Click here";let o=this.props.isNewInfoElements?this.props.horizontalAlignment:e.controllers_layoutParams_info_horizontalAlignment;e[Ut.Z.behaviourParams.gallery.layoutDirection]===d.Z[Ut.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT&&(o=_i.flipGalleryHorizontalAlign(e.controllers_layoutParams_info_horizontalAlignment));const a={justifyContent:o,zIndex:17};return this.props.isNewInfoElements&&(a.paddingTop=this.props.paddingTop,a.paddingBottom=this.props.paddingBottom,a.paddingLeft=this.props.paddingLeft,a.paddingRight=this.props.paddingRight),r().createElement("div",{className:"info-member info-element-custom-button-wrapper","data-hook":"custom-button-wrapper",style:a},this.props.small&&e.isStoreGallery?r().createElement(xi,null):r().createElement("button",{"data-hook":"custom-button-button",className:"info-element-custom-button-button",onClick:()=>t.eventsListener(Xt.CUSTOM_BUTTON_CLICKED,this.props),style:{cursor:"inherit"},tabIndex:-1},i,r().createElement("div",{className:"overlay"})))}}var Ni=Ci;class Ri extends r().Component{render(){const{title:e}=this.props,t=pi(this.props);this.props.isNewInfoElements&&(t.marginBottom=t.paddingBottom,delete t.paddingBottom);const i=this.props.isNewInfoElements?Math.random():"CONST";return r().createElement("div",{key:i,className:"info-member info-element-title","data-hook":"item-title",style:t},r().createElement("span",null,e))}}class Di extends r().Component{render(){const{description:e}=this.props,t=this.props.isNewInfoElements?Math.random():"CONST";return r().createElement("div",{key:t,className:"info-member info-element-description","data-hook":"item-description",style:pi(this.props)},e.split("\n").map(((e,t)=>r().createElement("span",{key:t},e,r().createElement("br",null)))))}}function Mi(e,t){return parseInt(e[t],10)}var Gi=new class{isSlideshow(e){return d.Z.isLayout("SLIDESHOW")(e)}getDimensions(e){const t=zt.Z.getComputedStyle(e),i=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),r=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),o=parseFloat(t.borderLeftWidth)+parseFloat(t.borderRightWidth),a=parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth);return{width:e.clientWidth-r-o,height:e.clientHeight-i-a}}saveCurrentDisplay(e){if(!e)return;"none"!==this.getCss(e,"display")&&e.setAttribute("data-display",this.getCss(e,"display"))}getSavedDisplay(e){return e&&e.getAttribute("data-display")||"-webkit-box"}removeElement(e){this.saveCurrentDisplay(e),e.classList.add("hide")}addOrRemoveHideClass(e,t){"none"===t?e.classList.add("hide"):e.classList.remove("hide")}hideElement(e,t){if(void 0===t&&(t=!0),e)if(t){const t=this.getSavedDisplay(e);this.setCss(e,{visibility:"hidden"}),this.addOrRemoveHideClass(e,t)}else this.setCss(e,{visibility:"hidden"})}showElement(e,t){if(void 0===t&&(t=!0),t){const t=this.getSavedDisplay(e);this.setCss(e,{visibility:"inherit"}),this.addOrRemoveHideClass(e,t)}else this.setCss(e,{visibility:"inherit"})}getCss(e,t,i){return zt.Z.getComputedStyle(e)[t]||i}setCss(e,t){try{Object.assign(e.style,t)}catch(e){}}shouldFix(e,t){const{options:i,title:r,description:o,style:a,externalTotalInfoHeight:s}=e,n=t.options,l=t.title,u=t.description,c=t.style,h=t.externalTotalInfoHeight,m=n.allowSocial||n.loveButton||n.allowDownload,d=i.allowSocial||i.loveButton||i.allowDownload;return a.height!==c.height||s!==h||a.width!==c.width||this.isSlideshow(i)!==this.isSlideshow(n)||i.controllers_layoutParams_info_allowTitle!==n.controllers_layoutParams_info_allowTitle||i.controllers_layoutParams_info_allowDescription!==n.controllers_layoutParams_info_allowDescription||i[Ut.Z.layoutParams.info.height]!==n[Ut.Z.layoutParams.info.height]||i.textImageSpace!==n.textImageSpace||i.controllers_layoutParams_info_verticalPadding!==n.controllers_layoutParams_info_verticalPadding||i.controllers_layoutParams_info_horizontalPadding!==n.controllers_layoutParams_info_horizontalPadding||i.titleDescriptionSpace!==n.titleDescriptionSpace||i[Ut.Z.layoutParams.info.layout]!==n[Ut.Z.layoutParams.info.layout]||i.itemDescriptionFont!==n.itemDescriptionFont||i[Ut.Z.layoutParams.info.sizeUnits]!==n[Ut.Z.layoutParams.info.sizeUnits]||i.itemFont!==n.itemFont||d!==m||r!==l||o!==u}calcAvailableHeight(e,t){const{options:i,infoContainer:r}=e;let o;if(this.isSlideshow(i)){const e=r.getElementsByClassName("info-element-social"),t=e.length>0&&e[0];let a=0,s=0;if(t)a=t.clientHeight,s=parseInt(this.getCss(t,"margin-bottom",0),10);else{(i.allowSocial||i.loveButton||i.allowDownload)&&(a=24,s=24)}const n=24;o=i[Ut.Z.layoutParams.info.height]-n-a-s}else o=t;return o}fix(e,t){const{options:i,title:r,description:o}=e;if(t&&(!this.isSlideshow(i)||e.infoContainer)){for(const a of i[Ut.Z.layoutParams.info.placement].split(",")){const s=d.Z.hasExternalHorizontalPlacement(a),n=d.Z.hasExternalVerticalPlacement(a),l=this.getDimensions(t);if(e.isNewInfoElements){console.log("newInfo - decrease social size ");const e=t.querySelector(".info-element-social");if(e){const t=zt.Z.getComputedStyle(e),i=Mi(t,"height")+Mi(t,"paddingTop")+Mi(t,"paddingBottom");console.log("socialHeight",i),l.height-=i}}if(Object.values(l).some((e=>e<=0)))return!1;let u=this.calcAvailableHeight(e,l.height);const c=t.getElementsByClassName("info-element-custom-button-wrapper"),h=t.getElementsByClassName("info-element-title"),m=t.getElementsByClassName("info-element-description");let p=c.length>0;const g=p&&c[0],y=h.length>0&&h[0],_=m.length>0&&m[0],v=l.width<135;if(this.hideElement(y),this.setCss(y,{overflow:"hidden"}),this.hideElement(_,!(n||s)),this.setCss(_,{overflow:"hidden"}),this.hideElement(g,!1),p){const e=this.getDimensions(g).height;Number.isNaN(e)||u+30parseInt(y.clientHeight,10)?parseInt(y.children[0].offsetHeight,10):parseInt(y.clientHeight,10);const t=parseInt(this.getCss(y,"font-size",16),10),i=this.getLineHeightInPixels(this.getCss(y,"line-height","normal"),t);let r=1;if(e>=i&&(r=Math.floor(e/i)),f=Math.floor(u/i),0===f)this.removeElement(y);else{this.setCss(y,{overflow:"hidden"}),this.showElement(y);f>=r?(this.setCss(y,{"-webkit-line-clamp":"none"}),e=i*r):(this.setCss(y,{"-webkit-line-clamp":f+""}),e=i*f);u>e?u-=e:u=0}}if(_&&o&&i.controllers_layoutParams_info_allowDescription&&u>0&&(P&&f>0||!P)){this.setCss(_,{overflow:"visible"}),P&&(u-=i.titleDescriptionSpace||0),u<0&&(u=0);const e=parseInt(this.getCss(_,"font-size",16),10),t=this.getLineHeightInPixels(this.getCss(_,"line-height","normal"),e),r=Math.floor(u/t);0===r?(this.removeElement(_),this.setCss(y,{marginBottom:Zi+"px"})):(this.setCss(_,{overflow:"hidden","-webkit-line-clamp":r+""}),this.showElement(_,!(n||s)))}}return!0}}getLineHeightInPixels(e,t){return t=parseInt(t,10),e.includes("px")?parseInt(e,10):1.2*t}};class ki extends r().Component{constructor(e){super(e),this.debouncedTryFixLineHeight=_i.debounce(this.tryFixLineHeight.bind(this),500).bind(this)}getTextsClassNames(){const{showShare:e,isNarrow:t}=this.props,i=["info-element-text"];return e&&i.push("hidden"),t&&i.push("narrow-item"),i.join(" ")}getTextsStyles(){const{options:e,style:t}=this.props;let i={alignItems:e.controllers_layoutParams_info_horizontalAlignment,textAlign:e.galleryTextAlign};d.Z.hasExternalVerticalPlacement(e[Ut.Z.layoutParams.info.placement])&&(i={...i,...jt(e)}),d.Z.hasExternalHorizontalPlacement(e[Ut.Z.layoutParams.info.placement])&&(i={...i,...jt(e),display:"flex",flexDirection:"column",justifyContent:e.controllers_layoutParams_info_verticalAlignment}),d.Z.hasHoverPlacement(e[Ut.Z.layoutParams.info.placement])&&(i={...i,display:"flex",justifyContent:e.controllers_layoutParams_info_verticalAlignment,alignContent:e.controllers_layoutParams_info_verticalAlignment}),d.Z.isLayout("SLIDESHOW")(e)&&(i={...i,paddingTop:"0px"});const r="center"===t.justifyContent;return function(e){const t=e.options;return!d.Z.isLayout("SLIDESHOW")(t)&&!d.Z.isLayout("SLIDER")(t)&&!t[Ut.Z.layoutParams.thumbnails.enable]&&d.Z.hasHoverPlacement(t[Ut.Z.layoutParams.info.placement])&&t[Ut.Z.behaviourParams.item.overlay.hoveringBehaviour]!==d.Z[Ut.Z.behaviourParams.item.overlay.hoveringBehaviour].NEVER_SHOW&&function(){const{options:t}=e;return t.loveButton||t.allowSocial||t.allowDownload}()&&(t.controllers_layoutParams_info_allowTitle||t.controllers_layoutParams_info_allowTitleAndDescription)}(this.props)&&(i.paddingBottom=70),r&&(i.marginTop=t.height/15),e[Ut.Z.behaviourParams.gallery.layoutDirection]===d.Z[Ut.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?i.direction="rtl":i.direction="ltr",i}getItemTexts(){const{title:e,description:t,id:i,options:o,style:a,isNarrow:s,shouldShowButton:n,container:l}=this.props,u=e&&o.controllers_layoutParams_info_allowTitle,c=t&&o.controllers_layoutParams_info_allowDescription;let h,m,p;if(p=c?o.titleDescriptionSpace:n?Zi:0,h={overflow:"visible",marginBottom:p},m=n?{marginBottom:Zi}:{marginBottom:0},d.Z.isLayout("SLIDESHOW")(o)&&l&&l.galleryWidth&&l.galleryWidth<800){let e=l.galleryWidth;o[Ut.Z.behaviourParams.gallery.horizontal.slideshowInfo.enableCounter]&&(e-=30),o[Ut.Z.behaviourParams.gallery.horizontal.slideshowInfo.enablePlayButton]&&(e-=30),h.maxWidth=e,m.maxWidth=e}const g=u&&r().createElement(Ri,{key:"item-title-"+i,title:e,style:h}),y=c&&r().createElement(Di,{key:"item-description-"+i,description:t,style:m}),_=n&&r().createElement(Ni,{type:"button",options:o,style:a,small:s,actions:{eventsListener:this.props.actions.eventsListener}});if(!g&&!y&&!_)return null;const v=this.getTextsStyles(),f=this.getTextsClassNames(),P=r().createElement(r().Fragment,null,g,y,_);return r().createElement("div",{style:v,ref:e=>this.container=e,className:f,dir:"auto"},d.Z.isLayout("SLIDESHOW")(o)?P:r().createElement("div",null,P))}tryFixLineHeight(){Gi.fix(this.props,this.container)||setTimeout((()=>{Gi.fix(this.props,this.container)}),1e3)}componentDidUpdate(e){Gi.shouldFix(e,this.props)&&this.debouncedTryFixLineHeight()}componentDidMount(){this.tryFixLineHeight()}render(){return this.getItemTexts()}}class Hi extends r().Component{constructor(e){super(e),this.state={showShare:!1},this.isSmallItem=this.isSmallItem.bind(this),this.isNarrow=this.isNarrow.bind(this),this.hasRequiredMediaUrl=this.hasRequiredMediaUrl.bind(this),this.getItemTextsDetails=this.getItemTextsDetails.bind(this),this.createTextInfoElement=this.createTextInfoElement.bind(this)}isSmallItem(){return $t(this.props)}isNarrow(){return Vt(this.props)}hasRequiredMediaUrl(){const{type:e,url:t}=this.props;return t||"text"===e}getItemTextsDetails(e){void 0===e&&(e=0);const t="image"===this.props.type||"picture"===this.props.type,i=!0===this.props.options.useCustomButton,o=(t||!this.props.options.isStoreGallery)&&i;return r().createElement(ki,(0,a.Z)({},this.props,{key:`item-texts-${this.props.id}`,infoContainer:this.infoContainer,showShare:this.state.showShare,isSmallItem:this.isSmallItem(),isNarrow:this.isNarrow(),shouldShowButton:o,externalTotalInfoHeight:e,actions:{eventsListener:this.props.eventsListener}}))}createTextInfoElement(){const{options:e,style:t}=this.props,i=e[Ut.Z.layoutParams.info.height]+(this.hasRequiredMediaUrl()?0:t.height),o=this.getItemTextsDetails(i);return r().createElement("div",{"data-hook":"external-info-element",style:{height:"100%"}},o)}render(){const e=this.createTextInfoElement();return r().createElement("div",{"data-hook":"info-element",ref:e=>this.infoContainer=e,style:{height:"100%",width:"100%"}},e)}}class Bi extends Hi{constructor(e){super(e),this.state={showShare:!1},this.shouldShowHoverOnMobile=this.shouldShowHoverOnMobile.bind(this),this.shouldHover=this.shouldHover.bind(this),this.isSmallItem=this.isSmallItem.bind(this),this.isNarrow=this.isNarrow.bind(this),this.isShort=this.isShort.bind(this),this.isVerticalContainer=this.isVerticalContainer.bind(this),this.toggleShare=this.toggleShare.bind(this),this.hasRequiredMediaUrl=this.hasRequiredMediaUrl.bind(this),this.getShare=this.getShare.bind(this),this.getSocial=this.getSocial.bind(this),this.getItemTextsDetails=this.getItemTextsDetails.bind(this),this.createHoverInfoElement=this.createHoverInfoElement.bind(this),this.createAboveBelowRightLeftInfoElement=this.createAboveBelowRightLeftInfoElement.bind(this),this.createSlideshowInfoElement=this.createSlideshowInfoElement.bind(this)}shouldShowHoverOnMobile(){const{isMobile:e,viewMode:t}=this.props;if(e){const{allowDescription:e,allowTitle:i,titlePlacement:r,hoveringBehaviour:o,itemClick:a,alwaysShowHover:s,previewHover:n}=this.props.options;if(o===d.Z[Ut.Z.behaviourParams.item.overlay.hoveringBehaviour].NEVER_SHOW)return!1;if("nothing"===a&&"video"!==this.props.type)return!0;if((i||e)&&d.Z.hasHoverPlacement(r)&&o!==d.Z[Ut.Z.behaviourParams.item.overlay.hoveringBehaviour].NEVER_SHOW)return!0;if(s)return!0;if(t===d.Z.viewMode.EDIT&&n)return!0}return!1}shouldHover(){const{options:e,viewMode:t,isMobile:i}=this.props;return e[Ut.Z.behaviourParams.item.overlay.hoveringBehaviour]!==d.Z[Ut.Z.behaviourParams.item.overlay.hoveringBehaviour].NEVER_SHOW&&(!0===e.alwaysShowHover||(!(t!==d.Z.viewMode.EDIT||!e.previewHover)||(!i||this.shouldShowHoverOnMobile())))}isShort(){return Yt(this.props)}isVerticalContainer(){return Kt(this.props)}isIconTag(e){return["button","i","a","svg","path"].indexOf(e.toLowerCase())>=0}itemHasLink(){const{linkData:e,linkUrl:t}=this.props;return!!(e&&void 0!==e.type||void 0!==t&&""!==t)}toggleShare(e,t){e.stopPropagation(),e.preventDefault(),"mouseout"===e.type&&(this.isIconTag(e.target.tagName)||e.relatedTarget&&this.isIconTag(e.relatedTarget.tagName))||(this.props.shouldUseNewSocialSharePopup?this.props.actions.eventsListener(Xt.SOCIAL_SHARE_BUTTON_CLICKED,{showSocialSharePopup:!0,...this.props}):this.setState({showShare:void 0===t?!this.state.showShare:!!t}))}getShare(){return r().createElement(wi,(0,a.Z)({},this.props,{key:`item-share-${this.props.id}`,showShare:this.state.showShare,isVerticalContainer:this.isVerticalContainer(),actions:{toggleShare:this.toggleShare,eventsListener:this.props.eventsListener}}))}getSocial(){return r().createElement(gi,(0,a.Z)({},this.props,{showShare:this.state.showShare,isSmallItem:this.isSmallItem(),isNarrow:this.isNarrow(),isShort:this.isShort(),isVerticalContainer:this.isVerticalContainer(),key:`item-social-${this.props.id}`,actions:{toggleShare:this.toggleShare,getShare:this.getShare,eventsListener:this.props.eventsListener},shouldUseNewSocialSharePopup:this.props.shouldUseNewSocialSharePopup}))}getInfoContainerStyles(){const{options:e,infoType:t}=this.props;let i={height:"100%",width:"100%"};if(t===Ai.EXTERNAL){const t=this.itemHasLink();i={...i,cursor:e[Ut.Z.behaviourParams.item.clickAction]===d.Z[Ut.Z.behaviourParams.item.clickAction].NOTHING||e[Ut.Z.behaviourParams.item.clickAction]===d.Z[Ut.Z.behaviourParams.item.clickAction].LINK&&!t?"default":"pointer"}}else t===Ai.SLIDESHOW&&(i={...i,cursor:e[Ut.Z.behaviourParams.item.clickAction]===d.Z[Ut.Z.behaviourParams.item.clickAction].NOTHING||e[Ut.Z.behaviourParams.item.clickAction]===d.Z[Ut.Z.behaviourParams.item.clickAction].LINK?"default":"pointer"});return i}createHoverInfoElement(){const{options:e}=this.props,t=this.getSocial(),i=this.getShare(),o={height:"100%",boxSizing:"border-box",paddingLeft:e.controllers_layoutParams_info_verticalPadding+"px",paddingRight:e.controllers_layoutParams_info_verticalPadding+"px",paddingTop:("CENTER"!==e.controllers_layoutParams_info_verticalAlignment?e.controllers_layoutParams_info_verticalPadding:0)+"px",paddingBottom:("CENTER"!==e.controllers_layoutParams_info_verticalAlignment?e.controllers_layoutParams_info_verticalPadding:0)+"px"},a=d.Z.hasHoverPlacement(e[Ut.Z.layoutParams.info.placement])&&e[Ut.Z.behaviourParams.item.overlay.hoveringBehaviour]!==d.Z[Ut.Z.behaviourParams.item.overlay.hoveringBehaviour].NEVER_SHOW?this.getItemTextsDetails():null;return r().createElement("div",{className:"hover-info-element","data-hook":"hover-info-element",style:o},a,t,i)}createSlideshowInfoElement(){const e=this.getSocial(),t=this.getItemTextsDetails(),{options:i}=this.props,o=d.Z.isLayout("SLIDESHOW")(i)?{alignItems:i.controllers_layoutParams_info_horizontalAlignment,display:"flex",flexDirection:"column"}:{};return r().createElement("div",{"data-hook":"slideshow-info-element",style:{height:"100%",overflow:"hidden"}},r().createElement("div",{style:o,className:"slideshow-info-element-inner"},e,t))}createAboveBelowRightLeftInfoElement(){return this.createTextInfoElement()}render(){const{infoType:e}=this.props;let t;switch(e){case Ai.SLIDESHOW:t=this.createSlideshowInfoElement();break;case Ai.EXTERNAL:t=this.createAboveBelowRightLeftInfoElement();break;case Ai.HOVER:t=this.createHoverInfoElement();break;default:console.warn("InfoElement -> EXTERNAL_INFO_TYPE was not selected")}return r().createElement("div",{"data-hook":"info-element",ref:e=>this.infoContainer=e,style:this.getInfoContainerStyles()},t)}}function Fi(e){let{infoToClamp:t,availableHeight:i}=e;Vi(t,"CLAMP START availableHeight "+i);let r=i;const o=function(e){const t=getComputedStyle(e);let i=0;return i+=Wi(t.paddingBottom),i+=Wi(t.paddingTop),i+=Wi(t.borderTop),i+=Wi(t.borderBottom),i+=Wi(t.marginBottom),i+=Wi(t.marginTop),i}(t);r-=o,Vi(t,`availableHeightWithoutPaddingBottomAndMarginBottom ${r}`),r<0&&(r=0);const a=parseInt(Ui(t,"font-size",16),10),s=function(e,t){return t=parseInt(t,10),e.includes("px")?parseInt(e,10):1.2*t}(Ui(t,"line-height","normal"),a);Vi(t,`clamp lineHeight: ${s}`);const n=Math.floor(r/s);Vi(t,`LHF clamp numOfLines: ${n}`),function(e,t){const i=e.querySelector("span");if(0===t)return void zi(e,{display:"none"});zi(i,{"-webkit-box-orient":"vertical",display:"-webkit-box",overflow:"hidden","-webkit-line-clamp":t+""})}(t,n),Vi(t,"CLAMP END")}function zi(e,t){try{Object.assign(e.style,t)}catch(e){console.log("LHF set css error")}}function Ui(e,t,i){return zt.Z.getComputedStyle(e)[t]||i}function Wi(e){return e&&e.includes("px")?parseInt(e,10):0}function ji(e){return Array.from(e.querySelectorAll(".info-member"))}function Vi(e,t){console.log(`LHF ${e.classList.value}: ${t}`)}var $i=function(e){let t=e.offsetHeight;Vi(e,"sectionRemainingHeight start "+t),ji(e).forEach((e=>{t=function(e,t){const i=e.offsetHeight,r=function(e){const t=getComputedStyle(e);return t?Wi(t.marginTop)+Wi(t.marginBottom):0}(e),o=i+r;return Vi(e,`infoHeightIncludingBordersAndPaddings: ${i}, infoVerticalMargins: ${r}. infoFullHeight: ${o}`),o>t?(Fi({infoToClamp:e,availableHeight:t}),0):t-o}(e,t)}))};function Yi(e){if(e){try{!function(e){const t=function(e){const t=e.querySelectorAll(".section");return Array.from(t)}(e);t.forEach($i)}(e)}catch(e){console.log("LHF ERROR fixSections"),console.error(e)}console.log("LHF FIX END")}else console.log("LHF RETURN !textsContainer")}const Ki=e=>{const{masterInfoConfig:t,CompsMap:o,shouldControlHorizontalAlignment:a,actions:s}=e,n=(0,i.useRef)(null);(0,i.useEffect)((()=>{Yi(n.current)}),[t]);const l=function(e,t,i,o){const a=["top","middle","bottom"].map((a=>function(e,t,i,o,a){const s=t.order[e],n=function(e,t,i,o,a){const s=function(e){const i=t[e.pathInData];return r().createElement(Ji,{InfoClass:e.comp,key:e.pathInData,infoParams:i,internalOrExternal:t.masterType,shouldControlHorizontalAlignment:o,actions:a})};return e.filter((e=>t.enabled[e])).map((e=>i[e])).map(s)}(s,t,i,o,a),l={};0===n.length&&(l.display="none");return r().createElement(Xi,{key:e,position:e,style:l},n)}(a,e,t,i,o))),s={display:"grid",height:"100%"},n=["parent"];"internal"===e.masterType&&n.push("hover-info-element");return r().createElement("div",{key:e.masterType,className:n.join(" "),style:s},a)}(t,o,a,s),u={paddingLeft:t.paddingLeft,paddingRight:t.paddingRight,paddingTop:t.paddingTop,paddingBottom:t.paddingBottom,boxSizing:"border-box",height:"100%"};return r().createElement("div",{ref:n,style:u},l)},Xi=e=>{const t={display:"flex",overflow:"hidden",flexDirection:"column",justifyContent:{top:"flex-start",middle:"center",bottom:"flex-end"}[e.position]};return r().createElement("div",{className:`section ${e.position}`,style:t},r().createElement("div",null,e.children))},qi=e=>{const t=e.horizontalAlignment.toLowerCase(),i={display:"flex",justifyContent:t,paddingBottom:`${e.paddingBottom}px`};return r().createElement("div",{className:t,style:i},e.children)};function Ji(e){const{InfoClass:t,infoParams:i,actions:o}=e;return r().createElement(qi,{horizontalAlignment:i.horizontalAlignment},r().createElement(t,(0,a.Z)({},i,{isNewInfoElements:!0,shouldControlHorizontalAlignment:e.shouldControlHorizontalAlignment,horizontalAlignment:i.horizontalAlignment,internalOrExternal:e.internalOrExternal,paddingBottom:i.paddingBottom,paddingTop:i.paddingTop,paddingLeft:i.paddingLeft,paddingRight:i.paddingRight,actions:o})))}var Qi=(e,t)=>class extends r().Component{render(){const{internalOrExternal:i,...o}=this.props;return r().createElement("div",{style:{width:"100%"},className:`${t}-${i}`},r().createElement(e,o))}};const er=Qi(Ri,"info-element-title"),tr=Qi(Di,"info-element-description"),ir={Title:{pathInData:"titleParams",comp:er},CustomButton:{pathInData:"customButtonParams",comp:Qi(Ni,"info-element-custom-button-wrapper")},Description:{pathInData:"descriptionParams",comp:tr},Social:{pathInData:"socialParams",comp:Qi(gi,"info-element-social")}};var rr=function(e,t,i,o){return r().createElement(Ki,{masterInfoConfig:e,CompsMap:ir,shouldControlHorizontalAlignment:t,shouldUseLineHeightFixer:i,actions:o})},or=function(e,t){const i=(e.get(t)||"").split("_").map((function(e){return e.split(":")})).map((e=>({[e[0]]:e[1]})));return Object.assign({},...i)};function ar(e,t,i,r,o){const a=Ft().cloneDeep(t.infoElementsOptions.newInfoElementsConfig[r]);Ft().has(t,"infoElementsOptions.newInfoElementsConfig")&&function(e,t){if(Vt({style:t.style})&&e.enabled.Social&&"internal"===e.masterType){const i=.1*t.style.height;e.paddingBottom-=26,e.socialParams.paddingBottom+=i,e.titleParams.paddingLeft=5,e.titleParams.paddingRight=5}Yt({style:t.style})&&"internal"===e.masterType&&(e.paddingBottom=0,e.paddingTop=0,e.socialParams.paddingBottom=.1*t.style.height)}(a,e);const s=function(e,t){const i=e[t.idx];return i.metaData?i.metaData:i}(t.items||[],e);a.titleParams.title=s.title,a.titleParams.title||(a.enabled.Title=!1),a.descriptionParams.description=Ft().get(s,"description",""),a.descriptionParams.description||(a.enabled.Description=!1,a.titleParams.paddingBottom-=e.options.titleDescriptionSpace),a.customButtonParams.options={customButtonText:e.options.customButtonText};const n={shouldUseNewSocialSharePopup:i,isNarrow:Vt({style:e.style}),isSmallItem:$t({style:e.style,options:Ft().pick(e.options,[Ut.Z.layoutParams.crop.enable,Ut.Z.layoutParams.crop.method,Ut.Z.layoutParams.structure.galleryLayout])}),isShort:Yt({style:e.style}),isVerticalContainer:Kt({style:e.style}),photoId:e.photoId,isDemo:e.isDemo,id:e.id,showShare:!1,createUrl:e.createUrl};return a.socialParams={...a.socialParams,...n},function(e,t,i){const r="true"===i.get("overrideConfig");if(!r)return;e.order.top=[],e.order.middle=[],e.order.bottom=[];const o=or(i,`${t}Alignments`);for(const[t,i]of Object.entries(o))e[`${t}Params`].horizontalAlignment=i;const a=or(i,`${t}Sections`);for(const[t,i]of Object.entries(a))e.order[i].push(t),e.enabled[t]=!0}(a,r,o),a}function sr(e,t,i,r){return{masterType:e,paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,order:i||{top:[],middle:[],bottom:[]},enabled:t||{Title:!1,Description:!1,Social:!1,CustomButton:!1},titleParams:{title:"dummy",horizontalAlignment:"center",paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},descriptionParams:{description:"dummy_desc",horizontalAlignment:"center",paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},customButtonParams:{options:{customButtonText:"dummy-button-text"},horizontalAlignment:"center",paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},socialParams:r||{viewMode:"",options:{galleryTextAlign:"DUMMY",loveButton:!1,allowSocial:!1,loveCounter:!1,allowDownload:!1,hasThumbnails:!1},horizontalAlignment:"center",paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}}function nr(e,t){e.externalPlacement=function(e){return e===d.Z.behaviourParams_item_overlay_hoveringBehaviour.APPEARS||e===d.Z.behaviourParams_item_overlay_hoveringBehaviour.ALWAYS_SHOW?"internal":"external"}(t)}function lr(e,t){const i="top";return[i,"middle","bottom"].find((i=>t.order[i].includes(e)))||i}function ur(e,t){return"Title"===e?t.controllers_layoutParams_info_allowTitle:"Description"===e?t.controllers_layoutParams_info_allowDescription:"CustomButton"===e?t.useCustomButton:t.allowSocial||t.allowDownload||t.loveButton}function cr(e,t,i,r){const o=function(e,t,i){return{externalPlacement:"external",internal:sr("internal",e,t,i),external:sr("external",e,t,i)}}(t,i,r);nr(o,e[Ut.Z.layoutParams.info.placement]);["internal","external"].forEach((t=>{const i=o[t];["Title","Description","CustomButton","Social"].forEach((t=>{var r,o,a;r=i,o=ur(t,e),a=t,r.enabled[a]=o}));var r,a;r=i,a=e.galleryTextAlign,r.titleParams.horizontalAlignment=a,r.descriptionParams.horizontalAlignment=a,r.customButtonParams.horizontalAlignment=a,r.socialParams.horizontalAlignment=a,r.socialParams.options.galleryTextAlign=a,function(e,t){if(!1===(e.enabled.Title&&e.enabled.Description))return;lr("Title",e)===lr("Description",e)&&(e.titleParams.paddingBottom=t)}(i,e.titleDescriptionSpace),function(e,t,i,r,o,a){const s=e.socialParams.options;s.loveButton=t,s.allowSocial=i,s.loveCounter=r,s.allowDownload=o,s.hasThumbnails=a}(i,e.loveButton,e.allowSocial,e.loveCounter,e.allowDownload,e[Ut.Z.layoutParams.thumbnails.enable]),function(e,t){e.paddingTop+=t,e.paddingBottom+=t}(i,e.controllers_layoutParams_info_verticalPadding),function(e,t){e.paddingLeft+=t,e.paddingRight+=t}(i,e.controllers_layoutParams_info_horizontalPadding)}));const a={...e,newInfoElementsConfig:o};return a.isMigratedFromOldInfo=!0,a}function hr(e,t,i,r,o,a,s,n){const l=function(e){const{HOVER:t,EXTERNAL:i,SLIDESHOW:r}=Ai;if(e===i||e===r)return"external";if(e===t)return"internal";throw new Error(`MasterInfoElement does not support the externalInfoType: ${e}`)}(e);if(n){const e=Ft().pick(i.infoElementsOptions.newInfoElementsConfig[l],["order","enabled","socialParams"]),t=function(e,t,i){const r=sr(t);return cr(Ft().cloneDeep(i.options),Ft().cloneDeep(r.enabled),Ft().cloneDeep(r.order),Ft().cloneDeep(r.socialParams)).newInfoElementsConfig[t]}(0,l,o);t.order=e.order,t.enabled=e.enabled,t.socialParams=Ft().merge(t.socialParams,e.socialParams),i.infoElementsOptions.newInfoElementsConfig[l]=t}const u=ar(o,i,r,l,new Map(Object.entries(t))),c={eventsListener:i.eventsListener||Ft().noop};return rr(u,a,s,c)}var mr=function(e,t,i,o,s,n,l,u){let c={...t};if(e){["top","middle","bottom"].forEach((e=>{["external","internal"].forEach((t=>{"string"==typeof u[`infoElementsOptions_${t}_order_${e}`]&&(u[`infoElementsOptions_${t}_order_${e}`]=u[`infoElementsOptions_${t}_order_${e}`].split(","))}))}));const e=Ft().pick(u,["infoElementsOptions_external_enabled_Description","infoElementsOptions_external_enabled_Title","infoElementsOptions_external_enabled_CustomButton","infoElementsOptions_external_enabled_Social","infoElementsOptions_external_socialParams_options_allowDownload","infoElementsOptions_external_socialParams_options_loveButton","infoElementsOptions_external_socialParams_options_allowSocial","infoElementsOptions_external_socialParams_horizontalAlignment","infoElementsOptions_external_order_bottom","infoElementsOptions_external_order_middle","infoElementsOptions_external_order_top","infoElementsOptions_internal_enabled_Description","infoElementsOptions_internal_enabled_Social","infoElementsOptions_internal_socialParams_options_allowDownload","infoElementsOptions_internal_socialParams_options_loveButton","infoElementsOptions_internal_socialParams_options_allowSocial","infoElementsOptions_internal_socialParams_horizontalAlignment","infoElementsOptions_internal_enabled_Title","infoElementsOptions_internal_enabled_CustomButton","infoElementsOptions_internal_order_bottom","infoElementsOptions_internal_order_middle","infoElementsOptions_internal_order_top"]),t=(0,Rt.Tx)(e);c.infoElementsOptions={newInfoElementsConfig:{internal:t.infoElementsOptions.internal,external:t.infoElementsOptions.external,externalPlacement:"external"}}}return{customInfoRenderer:(t,l)=>e?hr(function(e){return e===d.Z.layoutParams_info_placement.OVERLAY?Ai.HOVER:Ai.EXTERNAL}(l),{},c,!0,t,i,o,s):n||r().createElement(Bi,(0,a.Z)({infoType:Ai.EXTERNAL},t)),customHoverRenderer:t=>e?hr(Ai.HOVER,{},c,!0,t,i,o,s):l||r().createElement(Bi,(0,a.Z)({infoType:Ai.HOVER},t))}};function dr(e,t,i){i.EXPERIMENTALallowParallelInfos=!0;return mr(e,t,!1,!0,!0,t.customInfoRenderer,t.customHoverRenderer,i)}function pr(e){const t=e.controllers_experimental_useNewInfo;return!0===t||"true"===t||"yes"===t}const gr=e=>t=>{const i=async e=>{const{numOfItems:i,container:r,options:o,layoutHeight:a,isInfinite:s,isFixedHorizontlaGalleryRatio:n,updatedHeight:l}=e;!function(e){let{viewMode:t,layoutHeight:i,galleryOptions:r,galleryContainer:o,numOfItems:a,isInfinite:s,isFixedHorizontlaGalleryRatio:n,updatedHeight:l,setHeightImp:u}=e;const c={[d.Z.viewMode.SITE]:"site",[d.Z.viewMode.EDIT]:"editor",[d.Z.viewMode.PREVIEW]:"preview",[d.Z.viewMode.SEO]:"site"}[t];Wt.setWixHeight({height:i,offsetTop:0,styleParams:r,container:o,numOfItems:a,isInfinite:s,isFixedHorizontlaGalleryRatio:n,updatedHeight:l,setHeightImp:u,viewMode:c,clearHeight:void 0})}({viewMode:t.viewMode,layoutHeight:a,galleryOptions:o,galleryContainer:r,numOfItems:i,isInfinite:s,isFixedHorizontlaGalleryRatio:n,updatedHeight:l,setHeightImp:async e=>{await new Promise((e=>setTimeout(e,0))),"function"==typeof t.setLayoutHeightImp&&t.setLayoutHeightImp(e)}})},s=o().GALLERY_CHANGE((e=>i(e))).done(t.eventsListener),n=t.isPrerenderMode?{display:"none"}:{};return r().createElement(e,(0,a.Z)({},t,{eventsListener:s,styles:n}))},yr=e=>t=>{const i=pr(t.options),o={...t.customComponents,...dr(i,t,t.options)};return r().createElement(e,(0,a.Z)({},t,{customComponents:o}))};var _r=u(64762);function vr(e,t,i){return e.indexOf(t)>0&&e.indexOf(i)>-1}function fr(e,t){return e.replace("webp",t)}class Pr extends r().Component{constructor(){super(...arguments),(0,M.Z)(this,"myRef",r().createRef())}render(){const e=this.props;if("string"==typeof e.src){const t=br(e.src,e);return r().createElement("picture",{key:`picture_${e.id}`},function(e){return e.match(/\.\w{3,4}\/v\d\/\w*\//)?r().createElement("source",{srcSet:e.replace(/(jpg|jpeg|png)$/,"webp"),type:"image/webp"}):null}(e.src),function(e){return vr(e,".webp",".png")?r().createElement("source",{srcSet:fr(e,"png"),type:"image/png"}):vr(e,".webp",".jpg")||vr(e,".webp",".jpeg")?r().createElement("source",{srcSet:fr(e,"jpeg"),type:"image/jpeg"}):null}(e.src),r().createElement("img",t))}if("object"==typeof e.src){const t=br(e.src[e.src.length-1].url,e);return!0===e.priorityLoading?(t.loading="eager",t.fetchpriority="high"):!1===e.priorityLoading&&(t.loading="lazy"),r().createElement("picture",{key:`multi_picture_${e.id}`},e.src.map((t=>{const i=`image/${t.type}`,o=t.dpr||t.url,a=t.forPrinting?_r.k:"source";return r().createElement(a,{srcSet:o,type:i,key:`${e.id}-${t.forPrinting?"printingSrc-":""}${t.type}`})})),r().createElement("img",(0,a.Z)({ref:this.myRef},t)))}return null}}function br(e,t){return{...{src:e,alt:t.alt,className:t.className,style:t.style,"data-hook":t["data-hook"],loading:t.loading,onLoad:t.onLoad}}}class Ir extends r().Component{constructor(e){super(e),(0,M.Z)(this,"getCurrentImage",(()=>{const e={...this.props,...this.state.current,key:"pro-gallery-image-renderer-"+this.props.id};return r().createElement(Pr,e)})),this.state={current:{src:e.src},latest:{src:e.src},allowChanges:e.allowChanges}}UNSAFE_componentWillReceiveProps(e){JSON.stringify(this.props.src)!==JSON.stringify(e.src)&&(!1!==this.state.allowChanges?this.setState({current:{src:e.src,priorityLoading:e.priorityLoading},latest:{src:e.src,priorityLoading:e.priorityLoading}}):this.setState({latest:{src:e.src,priorityLoading:e.priorityLoading}})),e.allowChanges&&e.allowChanges!==this.state.allowChanges&&this.setState({allowChanges:!0,current:{...this.state.current,...this.state.latest}})}render(){return this.getCurrentImage()}}class Sr{constructor(e){(0,M.Z)(this,"setAccessibilityStateCB",void 0),(0,M.Z)(this,"tabWasPressed",void 0),(0,M.Z)(this,"eventActive",void 0),(0,M.Z)(this,"waitForFirstTabPress",(e=>{9===e.keyCode&&(e.preventDefault(),this.cleanupAccessibility(),this.tabWasPressed=!0,this.setAccessibilityStateCB(!0))})),this.initAccessibility=this.initAccessibility.bind(this),this.cleanupAccessibility=this.cleanupAccessibility.bind(this),this.waitForFirstTabPress=this.waitForFirstTabPress.bind(this),this.tabWasPressed=!1,this.eventActive=!1,this.setAccessibilityStateCB=e}initAccessibility(e){if(void 0===e&&(e=!0),e){this.eventActive=!0;const{addEventListener:e}=zt.Z||{addEventListener:()=>{}};e("keydown",this.waitForFirstTabPress)}}cleanupAccessibility(){if(this.eventActive){const{removeEventListener:e}=zt.Z||{removeEventListener:()=>{}};e("keydown",this.waitForFirstTabPress)}}}const Er=e=>t=>{const i=pr(t.options),o=t.options[Ut.Z.behaviourParams.item.overlay.hoverAnimation],s=t.options.controllers_behaviourParams_item_overlay_hoverAnimationBehavior;if(!i)return r().createElement(e,t);const n=o.toLowerCase().replaceAll("_","-"),l=`animation-${s.toLowerCase()}`,u={...t.options,[Ut.Z.behaviourParams.item.overlay.hoverAnimation]:d.Z.behaviourParams_item_overlay_hoverAnimation.NO_EFFECT};return r().createElement("div",{className:`pro-gallery-overlay-animation-wrapper ${n} ${l}`},r().createElement(e,(0,a.Z)({},t,{options:u})))},Or=Zt((e=>t=>{const o=!t.disableAccessibilityHelper,{isAccessible:s}=(e=>{const[t,r]=(0,i.useState)(!1),o=(0,i.useMemo)((()=>new Sr(r)),[]);return(0,i.useEffect)((()=>(o.initAccessibility(e),()=>{o.cleanupAccessibility()})),[o,e]),{isAccessible:t}})(o);return r().createElement(e,(0,a.Z)({},t,{isAccessible:s}))})(Nt((e=>t=>{const[s,n]=(0,i.useState)(Boolean(null==t?void 0:t.firstInteractionRecorded)),l=()=>{!s&&n(!0)},u=o().HOVER_SET(l).GALLERY_SCROLLED(l).LOAD_MORE_CLICKED(l).ITEM_ACTION_TRIGGERED(l).ITEM_CLICKED(l).done(t.eventsListener);return r().createElement(r().Fragment,null,r().createElement(e,(0,a.Z)({},t,{firstInteractionRecorded:s,eventsListener:u})))})((e=>t=>{const i={...t.customComponents,customImageRenderer:e=>{if([d.Z.viewMode.EDIT,d.Z.viewMode.PREVIEW].includes(t.viewMode))return r().createElement(Pr,e);{const i=t.isInFirstFold;let o;t.firstInteractionRecorded||void 0!==i&&(o=i);const a={...e,allowChanges:t.firstInteractionRecorded,priorityLoading:o};return r().createElement(Ir,a)}}};return r().createElement(e,(0,a.Z)({},t,{customComponents:i}))})(yr(Er(gr(kt((e=>t=>r().createElement(r().Fragment,null,r().createElement(e,t),r().createElement("noscript",null,r().createElement("style",null,"\n .pro-gallery-wix-wrapper {display: block !important;}\n .pro-gallery-wix-wrapper .gallery-item-container {opacity: 1 !important; display: block !important;}\n "))))((e=>t=>{const i=()=>r().createElement(e,t);return!t.positionAbsoluteForFiniteHeightGalleries||((o=t.options)[Ut.Z.layoutParams.structure.scrollDirection]===d.Z[Ut.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&o[Ut.Z.layoutParams.structure.galleryRatio.value]>0||o[Ut.Z.layoutParams.structure.scrollDirection]===d.Z[Ut.Z.layoutParams.structure.scrollDirection].VERTICAL&&!o[Ut.Z.behaviourParams.gallery.vertical.loadMore.enable])?i():r().createElement("div",{className:"manual-height-gallery-wrapper"},i());var o})(at((e=>{let{id:t,container:i,options:o,customComponents:l,isPrerenderMode:u,eventsListener:c,isAccessible:h,staticMediaUrls:m,children:d,styles:p,experimentalFeatures:g,...y}=e;return r().createElement("div",{className:"pro-gallery-wix-wrapper",style:p},r().createElement(s.Z,(0,a.Z)({},y,{id:t,options:o,container:i,createMediaUrl:(0,n.N)({staticMediaUrls:m,isPrerenderMode:u,experimentalFeatures:g}),settings:{isAccessible:h},eventsListener:c,isPrerenderMode:u,customComponents:l})),d)}))))))))))))),Tr={...d.Z.behaviourParams_item_clickAction,EXPAND:"EXPAND",FULLSCREEN:"FULLSCREEN"},Lr={...d.Z,behaviourParams_item_clickAction:Tr};function wr(e){var t,i,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t{let o=null;return function(...a){i&&null===o&&e.apply(this,a),o&&clearTimeout(o),o=r&&i&&!o?setTimeout((()=>{o=null}),t):setTimeout((()=>{r&&e.apply(this,a),o=null}),t)}};const xr="wixui-",Cr=(e,...t)=>{const i=[];return e&&i.push(`${xr}${e}`),t.forEach((e=>{e&&(i.push(`${xr}${e}`),i.push(e))})),i.join(" ")},Nr=({callback:e,ref:t,elem:r})=>{(0,i.useEffect)((()=>{const i=new ResizeObserver(e);return t?.current&&i.observe(t.current),r&&i.observe(r),()=>{i.disconnect()}}),[t,r,e])},Rr=e=>{const{selectionSelector:t}=e;return".root::item::overlay"===t},Dr=e=>{return{...e,image:{...e.image,uri:(t=e.image.uri,"http"!==t.substr(0,4)?"https://static.wixstatic.com/media/"+t:t)}};var t};function Mr(e){try{return e&&JSON.parse(e)}catch(e){return}}var Gr=function(e){return{newInfoElements:e("se_proGalleryMasterInfo"),useImageAvifFormat:e("specs.thunderbolt.useImageAvifFormatInNativeProGallery")}};var kr={root:"gallery",galleryItem:"gallery__item"},Hr=JSON.parse('{"$schema":"./ProGallery.options.schema.json","controllers_layoutParams_structure_galleryRatio_method":{"key":"controllers_layoutParams_structure_galleryRatio_method","title":"Native_ProGallery_GalleryRatio","type":"OPTIONS","controller":"RADIO","thumbnailsSize":"MEDIUM","default":"MANUAL","options":[{"value":"MANUAL","title":"Native_ProGallery_GalleryRatio_Option1"},{"value":"FIXED","title":"Native_ProGallery_GalleryRatio_Option2"}],"description":"Native_ProGallery_GalleryRatio_Tooltip"},"behaviourParams_gallery_blockContextMenu":{"key":"behaviourParams_gallery_blockContextMenu","title":"Native_ProGallery_Settings_MediaProtection_Label","type":"BOOLEAN","default":true,"description":"Native_ProGallery_Settings_MediaProtection_Tooltip"},"controllers_layoutParams_structure_galleryRatio_value":{"key":"controllers_layoutParams_structure_galleryRatio_value","title":"","type":"OPTIONS","controller":"THUMBNAILS","default":1,"thumbnailsSize":"SMALL","options":[{"value":3,"title":"Native_ProGallery_Layout_CropRatio_List_Item0","icon":"imageRatio_3_1"},{"value":1.7777777777777777,"title":"Native_ProGallery_Layout_CropRatio_List_Item1","icon":"imageRatio_16_9"},{"value":1.3333333333333333,"title":"Native_ProGallery_Layout_CropRatio_List_Item2","icon":"imageRatio_4_3"},{"value":1,"title":"Native_ProGallery_Layout_CropRatio_List_Item3","icon":"imageRatio_1_1"},{"value":0.75,"title":"Native_ProGallery_Layout_CropRatio_List_Item4","icon":"imageRatio_3_4"}]},"layoutParams_structure_galleryLayout":{"key":"layoutParams_structure_galleryLayout","title":"ProGallery_Layout_Tab_Custom_Label","noBottomDivider":true,"type":"OPTIONS","controller":"THUMBNAILS","options":[{"value":0,"title":"ProGallery_Layout_Layouts_Type12","icon":"layouts_collage"},{"value":1,"title":"ProGallery_Layout_Layouts_Type13","icon":"layouts_masonry"},{"value":2,"title":"ProGallery_Layout_Layouts_Type3","icon":"layouts_grid"},{"value":3,"title":"ProGallery_Layout_Layouts_Type7","icon":"layouts_thumbnail"},{"value":4,"title":"ProGallery_Layout_Layouts_Type8","icon":"layouts_slider"},{"value":5,"title":"ProGallery_Layout_Layouts_Type9","icon":"layouts_slideshow"},{"value":6,"title":"ProGallery_Layout_Layouts_Type10","icon":"layouts_strip"},{"value":7,"title":"ProGallery_Layout_Layouts_Type6","icon":"layouts_column"},{"value":10,"title":"ProGallery_Layout_Layouts_Type14","icon":"layouts_bricks"},{"value":11,"title":"ProGallery_Layout_Layouts_Type15","icon":"layouts_mix"},{"value":12,"title":"ProGallery_Layout_Layouts_Type16","icon":"layouts_alternate"}],"default":0},"layoutParams_structure_scrollDirection":{"key":"layoutParams_structure_scrollDirection","title":"Native_ProGallery_Layout_Orientation_Label","type":"OPTIONS","controller":"RADIO","default":"VERTICAL","options":[{"value":"VERTICAL","title":"ProGallery_Layout_DisplaySection_Option1"},{"value":"HORIZONTAL","title":"ProGallery_Layout_DisplaySection_Option2"}]},"controllers_layoutParams_structure_imageWidth_method":{"key":"controllers_layoutParams_structure_imageWidth_method","title":"Native_ProGallery_Layout_GalleryWidth_Label","type":"OPTIONS","controller":"RADIO","thumbnailsSize":"MEDIUM","default":"FIXED","options":[{"value":"RESPONSIVE","title":"Native_ProGallery_Layout_GalleryWidth_Responsive"},{"value":"FIXED","title":"Native_ProGallery_Layout_GalleryWidth_Fixed"}]},"controllers_layoutParams_structure_numberOfDisplayedItems":{"key":"controllers_layoutParams_structure_numberOfDisplayedItems","title":"Native_ProGallery_Layout_GalleryWidth_Responsive_Number","default":3,"max":10,"min":1,"type":"NUMBER"},"layoutParams_structure_layoutOrientation":{"key":"layoutParams_structure_layoutOrientation","controller":"RADIO","title":"ProGallery_Layout_DisplaySection_Orientation_SubHeader","options":[{"value":"VERTICAL","title":"ProGallery_Layout_DisplaySection_Orientation_Option1"},{"value":"HORIZONTAL","title":"ProGallery_Layout_DisplaySection_Orientation_Option2"}],"type":"OPTIONS","default":"VERTICAL"},"behaviourParams_gallery_layoutDirection":{"key":"behaviourParams_gallery_layoutDirection","title":"ProGallery_Layout_Layout_Direction_Label","controller":"RADIO","type":"OPTIONS","default":"LEFT_TO_RIGHT","options":[{"value":"LEFT_TO_RIGHT","title":"ProGallery_Layout_Layout_Direction_LTR"},{"value":"RIGHT_TO_LEFT","title":"ProGallery_Layout_Layout_Direction_RTL"}]},"layoutParams_structure_itemSpacing":{"key":"layoutParams_structure_itemSpacing","title":"ProGallery_Layout_Spacing","type":"NUMBER","min":0,"max":300,"step":1,"default":10,"unit":"px"},"layoutParams_structure_numberOfGridRows":{"key":"layoutParams_structure_numberOfGridRows","title":"ProGallery_Layouts_Columns_Column_Label","default":1,"max":3,"min":1,"type":"NUMBER"},"layoutParams_structure_numberOfColumns":{"key":"layoutParams_structure_numberOfColumns","title":"ProGallery_Layout_Layouts_Gallery_Row_Label","default":3,"max":10,"min":1,"type":"NUMBER"},"layoutParams_groups_density":{"key":"layoutParams_groups_density","title":"ProGallery_Layout_CollageDens_Label","type":"FLOAT","default":0.8,"min":0,"max":1,"step":0.1,"unit":"%"},"layoutParams_targetItemSize_value":{"key":"layoutParams_targetItemSize_value","title":"ProGallery_Layout_Thumbnail_Size","type":"NUMBER","default":48,"min":1,"max":100,"step":1,"unit":"px"},"layoutParams_crop_method":{"key":"layoutParams_crop_method","title":"ProGallery_Layout_Thumbnail_Resize","type":"OPTIONS","controller":"THUMBNAILS","thumbnailsSize":"MEDIUM","default":"FILL","options":[{"value":"FILL","title":"ProGallery_Layout_Thumbnail_Crop","icon":"thumbnailResize_crop"},{"value":"FIT","title":"ProGallery_Layout_Thumbnail_Fit","icon":"thumbnailResize_fit"}]},"layoutParams_crop_ratios":{"key":"layoutParams_crop_ratios","type":"OPTIONS","controller":"THUMBNAILS","title":"ProGallery_Layouts_Slider_ImageRatio_Label","default":1,"thumbnailsSize":"SMALL","options":[{"value":1.7777777777777777,"title":"Native_ProGallery_Layout_CropRatio_List_Item1","icon":"imageRatio_16_9"},{"value":1.3333333333333333,"title":"Native_ProGallery_Layout_CropRatio_List_Item2","icon":"imageRatio_4_3"},{"value":1,"title":"Native_ProGallery_Layout_CropRatio_List_Item3","icon":"imageRatio_1_1"},{"value":0.75,"title":"Native_ProGallery_Layout_CropRatio_List_Item4","icon":"imageRatio_3_4"},{"value":0.5625,"title":"Native_ProGallery_Layout_CropRatio_List_Item5","icon":"imageRatio_9_16"}]},"layoutParams_structure_responsiveMode":{"key":"layoutParams_structure_responsiveMode","title":"Native_ProGallery_Layout_ResponsiveType","type":"OPTIONS","controller":"RADIO","default":"FIT_TO_SCREEN","options":[{"value":"FIT_TO_SCREEN","title":"ProGallery_Layouts_Grid_Responsive_Option1"},{"value":"SET_ITEMS_PER_ROW","title":"ProGallery_Layouts_Grid_Responsive_Option2"}]},"layoutParams_thumbnails_alignment":{"key":"layoutParams_thumbnails_alignment","title":"ProGallery_Layout_Layouts_Thumbnails_Placement_Label","type":"OPTIONS","controller":"THUMBNAILS","thumbnailsSize":"MEDIUM","options":[{"value":"BOTTOM","title":"Native_ProGallery_Layout_ThumbnailPlacement_List_Item1","icon":"placement_down"},{"value":"TOP","title":"Native_ProGallery_Layout_ThumbnailPlacement_List_Item2","icon":"placement_up"},{"value":"RIGHT","title":"Native_ProGallery_Layout_ThumbnailPlacement_List_Item3","icon":"placement_right"},{"value":"LEFT","title":"Native_ProGallery_Layout_ThumbnailPlacemento_List_Item4","icon":"placement_left"}],"default":"BOTTOM"},"layoutParams_thumbnails_size":{"key":"layoutParams_thumbnails_size","title":"ProGallery_Layout_Thumbnail_Size","type":"NUMBER","default":120,"min":30,"max":300,"unit":"px"},"layoutParams_thumbnails_spacing":{"key":"layoutParams_thumbnails_spacing","title":"ProGallery_Layout_Layouts_Thumbnails_Spacing_Label","type":"NUMBER","default":4,"min":0,"max":30,"unit":"px"},"controllers_layoutParams_thumbnails_marginToGallery":{"key":"controllers_layoutParams_thumbnails_marginToGallery","title":"ProGallery_Layout_Layouts_Thumbnails_marginToGallery_Label","description":"ProGallery_Layout_marginToGallery_Tooltip","type":"NUMBER","default":8,"min":0,"max":400},"behaviourParams_gallery_vertical_loadMore_enable":{"key":"behaviourParams_gallery_vertical_loadMore_enable","title":"ProGallery_Layout_LoadMore_Section_Label","type":"BOOLEAN","default":false},"behaviourParams_gallery_vertical_loadMore_text":{"key":"behaviourParams_gallery_vertical_loadMore_text","title":"ProGallery_Layout_LoadMore_Button_Title","type":"TEXT","default":"Load More"},"behaviourParams_gallery_horizontal_navigationDuration":{"key":"behaviourParams_gallery_horizontal_navigationDuration","title":"ProGallery_Settings_Design_Scroll_Duration_Title","type":"NUMBER","default":800,"min":100,"max":1000,"step":100},"behaviourParams_gallery_horizontal_loop":{"key":"behaviourParams_gallery_horizontal_loop","title":"ProGallery_Expand_Loop_Label","description":"ProGallery_Expand_Loop_Tooltip","type":"BOOLEAN","default":false},"behaviourParams_gallery_horizontal_autoSlide_interval":{"key":"behaviourParams_gallery_horizontal_autoSlide_interval","title":"ProGallery_Layout_SlideshowSection_Interval","min":2,"max":30,"type":"NUMBER","default":4},"behaviourParams_gallery_horizontal_autoSlide_speed":{"key":"behaviourParams_gallery_horizontal_autoSlide_speed","title":"ProGallery_Layout_SlideshowSection_Layout_Speed","min":1,"max":500,"type":"NUMBER","default":50},"behaviourParams_gallery_horizontal_autoSlide_pauseOnHover":{"key":"behaviourParams_gallery_horizontal_autoSlide_pauseOnHover","title":"ProGallery_Layout_SlideshowSection_Pause_On_Hover","type":"BOOLEAN","default":true},"layoutParams_navigationArrows_enable":{"key":"layoutParams_navigationArrows_enable","title":"ProGallery_Design_Navigation_Arrows_Toggle","type":"BOOLEAN","default":true},"layoutParams_navigationArrows_size":{"key":"layoutParams_navigationArrows_size","title":"ProGallery_Design_Arrows_Size","type":"NUMBER","min":8,"max":150,"default":23,"unit":"px"},"layoutParams_navigationArrows_position":{"key":"layoutParams_navigationArrows_position","title":"ProGallery_Design_Arrows_Position_Title","type":"OPTIONS","controller":"RADIO","default":"ON_GALLERY","options":[{"value":"ON_GALLERY","title":"ProGallery_Design_Arrows_Position_On_Gallery"},{"value":"OUTSIDE_GALLERY","title":"ProGallery_Design_Arrows_Position_Outside"},{"value":"MOUSE_CURSOR","title":"Native_ProGallery_Layout_Arrows_Position_Cursor"}]},"layoutParams_navigationArrows_container_type":{"key":"layoutParams_navigationArrows_container_type","title":"Native_ProGallery_Design_Arrows_Container_Type","type":"OPTIONS","default":"NONE","options":[{"value":"NONE","title":"Native_ProGallery_Design_Arrows_Container_None"},{"value":"BOX","title":"Native_ProGallery_Design_Arrows_Container_Box"}]},"layoutParams_navigationArrows_mouseCursorContainerMaxWidth":{"key":"layoutParams_navigationArrows_mouseCursorContainerMaxWidth","type":"OPTIONS","title":"Native_ProGallery_Layout_Arrows_Position_Cursor_Label","description":"Native_ProGallery_Layout_Arrows_Position_Cursor_Tooltip","controller":"THUMBNAILS","thumbnailsSize":"EXTRA_LARGE","default":"100","options":[{"value":"100","title":"Native_ProGallery_Layout_Arrows_Position_Cursor_EntireGallery","icon":"cursor_full_gallery"},{"value":"30","title":"Native_ProGallery_Layout_Arrows_Position_Cursor_GalleryEdges","icon":"cursor_edges_gallery"}]},"layoutParams_navigationArrows_verticalAlignment":{"key":"layoutParams_navigationArrows_verticalAlignment","title":"ProGallery_settings_design_verticalposition","type":"OPTIONS","default":"ITEM_CENTER","options":[{"value":"ITEM_CENTER","title":"ProGallery_settings_design_verticalposition_center_gallery"},{"value":"IMAGE_CENTER","title":"ProGallery_settings_design_verticalposition_center_image"},{"value":"INFO_CENTER","title":"ProGallery_settings_design_verticalposition_center_text"}]},"behaviourParams_item_content_hoverAnimation":{"key":"behaviourParams_item_content_hoverAnimation","title":"ProGallery_Design_Image_Hover_Animation_Label","type":"OPTIONS","controller":"THUMBNAILS","default":"NO_EFFECT","options":[{"value":"NO_EFFECT","title":"ProGallery_Design_Image_Hover_Animation_NoEffect","emptyState":true},{"value":"ZOOM_IN","title":"ProGallery_Design_Image_Hover_Animation_ZoomIn","icon":"hover_zoomIn"},{"value":"BLUR","title":"ProGallery_Design_Image_Hover_Animation_Blur","icon":"hover_blur"},{"value":"GRAYSCALE","title":"ProGallery_Design_Image_Hover_Animation_Grayscale","icon":"hover_grayscale"},{"value":"SHRINK","title":"ProGallery_Design_Image_Hover_Animation_Shrink","icon":"hover_shrink"},{"value":"INVERT","title":"ProGallery_Design_Image_Hover_Animation_Invert","icon":"hover_invert"},{"value":"COLOR_IN","title":"ProGallery_Design_Image_Hover_Animation_ColorIn","icon":"hover_color"},{"value":"DARKENED","title":"ProGallery_Design_Image_Hover_Animation_Darkened","icon":"hover_darken"},{"value":"MAIN_COLOR","title":"ProGallery_Design_Image_Hover_Animation_MainColor","icon":"hover_maincolor"}],"description":"ProGallery_Design_Image_Hover_Animation_Title"},"behaviourParams_item_content_loader":{"key":"behaviourParams_item_content_loader","title":"ProGallery_Settings_Image_Loading_Mode","options":[{"value":"BLUR","title":"ProGallery_Settings_Image_Loading_Mode_Blur"},{"value":"MAIN_COLOR","title":"ProGallery_Settings_Image_Loading_Mode_Color_Main_Color"}],"type":"OPTIONS","controller":"RADIO","default":"MAIN_COLOR"},"behaviourParams_item_content_placementAnimation":{"key":"behaviourParams_item_content_placementAnimation","title":"Image Placement Animation","type":"OPTIONS","default":"NO_EFFECT","options":[{"value":"NO_EFFECT","title":"No Effect"},{"value":"SLIDE","title":"Slide"}]},"behaviourParams_gallery_scrollAnimation":{"key":"behaviourParams_gallery_scrollAnimation","title":"ProGallery_Design_Scroll_Animation_Label","description":"ProGallery_Design_Scroll_Animation_TOOLTIP","controller":"THUMBNAILS","options":[{"value":"NO_EFFECT","title":"ProGallery_Design_Scroll_Animation_NoEffect","emptyState":true},{"value":"FADE_IN","title":"ProGallery_Design_Scroll_Animation_FadeIn","icon":"scroll_fadeIn"},{"value":"GRAYSCALE","title":"ProGallery_Design_Scroll_Animation_Grayscale","icon":"scroll_grayscale"},{"value":"SLIDE_UP","title":"ProGallery_Design_Scroll_Animation_SlideUp","icon":"scroll_slideUp"},{"value":"SLIDE_UP","title":"ProGallery_Design_Scroll_Animation_SlideIn","icon":"scroll_slideIn","id":"SLIDE_IN"},{"value":"EXPAND","title":"ProGallery_Design_Scroll_Animation_Expand","icon":"scroll_expand"},{"value":"SHRINK","title":"ProGallery_Design_Scroll_Animation_Shrink","icon":"scroll_shrink"},{"value":"ZOOM_OUT","title":"ProGallery_Design_Scroll_Animation_ZoomOut","icon":"scroll_zoomOut"},{"value":"ONE_COLOR","title":"ProGallery_Design_Scroll_Animation_OneColor","icon":"scroll_oneColor"}],"type":"OPTIONS","default":"NO_EFFECT"},"behaviourParams_gallery_horizontal_slideAnimation":{"key":"behaviourParams_gallery_horizontal_slideAnimation","title":"ProGallery_Design_Slide_Animation_Label","type":"OPTIONS","default":"SCROLL","controller":"THUMBNAILS","options":[{"value":"SCROLL","title":"ProGallery_Design_Slide_Animation_Scroll","icon":"slide_scroll"},{"value":"FADE","title":"ProGallery_Design_Slide_Animation_Fade","icon":"slide_fade"},{"value":"DECK","title":"ProGallery_Design_Slide_Animation_Stack","icon":"slide_stack"}],"description":"ProGallery_Design_Slide_Animation_Title"},"behaviourParams_item_video_enablePlayButton":{"key":"behaviourParams_item_video_enablePlayButton","title":"ProGallery_Settings_Show_Play_Button_Label","type":"BOOLEAN","default":true},"behaviourParams_item_video_playTrigger":{"key":"behaviourParams_item_video_playTrigger","title":"ProGallery_Settings_Play_Label","options":[{"value":"HOVER","title":"ProGallery_Settings_Hover_Label"},{"value":"AUTO","title":"ProGallery_Settings_Auto_Label"},{"value":"CLICK","title":"ProGallery_Settings_Click_Label"}],"type":"OPTIONS","default":"HOVER"},"behaviourParams_item_video_speed":{"key":"behaviourParams_item_video_speed","title":"ProGallery_Settings_Playback_Label","type":"OPTIONS","options":[{"value":0.25,"title":"ProGallery_Settings_Playback_25"},{"value":0.5,"title":"ProGallery_Settings_Playback_50"},{"value":0.75,"title":"ProGallery_Settings_Playback_75"},{"value":1,"title":"ProGallery_Settings_Playback_100"},{"value":1.25,"title":"ProGallery_Settings_Playback_125"},{"value":1.5,"title":"ProGallery_Settings_Playback_150"},{"value":1.75,"title":"ProGallery_Settings_Playback_175"},{"value":2,"title":"ProGallery_Settings_Playback_200"}],"default":1},"controllers_optionsMap_behaviourParams_item_video_volume":{"key":"controllers_optionsMap_behaviourParams_item_video_volume","title":"ProGallery_Settings_Sound_Label","type":"BOOLEAN","default":false},"behaviourParams_item_video_loop":{"key":"behaviourParams_item_video_loop","title":"ProGallery_Settings_Loop_Label","type":"BOOLEAN","default":true,"noBottomDivider":true},"behaviourParams_item_clickAction":{"key":"behaviourParams_item_clickAction","title":"ProGallery_Settings_ClickOptions_Label","noBottomDivider":true,"options":[{"value":"EXPAND","title":"ProGallery_Settings_ClickOptions_Expand"},{"value":"FULLSCREEN","title":"ProGallery_Settings_ClickOptions_Fullscreen"},{"value":"LINK","title":"ProGallery_Settings_ClickOptions_Link"},{"value":"NOTHING","title":"ProGallery_Settings_ClickOptions_Nothing"},{"value":"MAGNIFY","title":"ProGallery_Expand_Viewing_Settings_Magnifying"}],"type":"OPTIONS","default":"NOTHING","isRelevantPlaceholder":{"message":"Native_ProGallery_Settings_ClickOptions_Disabled"}},"behaviourParams_item_content_magnificationValue":{"key":"behaviourParams_item_content_magnificationValue","title":"ProGallery_Expand_Viewing_Settings_Magnifying_Size","type":"FLOAT","default":2,"min":1.5,"max":5,"step":0.5},"layoutParams_navigationArrows_padding":{"key":"layoutParams_navigationArrows_padding","title":"ProGallery_settings_design_Horizontal_padding","type":"NUMBER","min":0,"max":100,"default":23,"unit":"px"},"behaviourParams_gallery_vertical_loadMore_amount":{"key":"behaviourParams_gallery_vertical_loadMore_amount","title":"ProGallery_Layout_LoadMore_Amount","type":"OPTIONS","controller":"RADIO","default":"ALL","options":[{"value":"PARTIAL","title":"ProGallery_Layout_LoadMore_Amount_Partial"},{"value":"ALL","title":"ProGallery_Layout_LoadMore_Amount_All"}]},"behaviourParams_gallery_horizontal_autoSlide_behaviour":{"key":"behaviourParams_gallery_horizontal_autoSlide_behaviour","title":"ProGallery_Layout_SlideshowSection_Slide_Automatically","type":"OPTIONS","default":"OFF","options":[{"value":"OFF","title":"Native_ProGallery_Layout_Slideshow_List_Off"},{"value":"INTERVAL","title":"ProGallery_Layout_SlideshowSection_Interval_Header"},{"value":"CONTINUOUS","title":"ProGallery_Layout_SlideshowSection_Continuous_Header"}]},"behaviourParams_gallery_horizontal_slideTransition":{"key":"behaviourParams_gallery_horizontal_slideTransition","title":"ProGallery_Settings_Design_Slide_Transition_Title","options":[{"value":"linear","title":"ProGallery_Settings_Design_Slide_Transition_Linear"},{"value":"cubic-bezier(0.46,0.1,0.25,1)","title":"ProGallery_Settings_Design_Slide_Transition_Ease_In_Out"},{"value":"cubic-bezier(0.86,0,0.5,1)","title":"ProGallery_Settings_Design_Slide_Transition_Ease_In"},{"value":"cubic-bezier(0.31,1.17,0.58,1.07)","title":"ProGallery_Settings_Design_Slide_Transition_Ease_Out"},{"value":"cubic-bezier(0.49,-0.12,0.49,0.04)","title":"ProGallery_Settings_Design_Slide_Transition_Bounce_In"},{"value":"cubic-bezier(0.58,1.65,0.29,0.95)","title":"ProGallery_Settings_Design_Slide_Transition_Bounce_Out"},{"value":"cubic-bezier(0.6,-0.36,0.41,1.23)","title":"ProGallery_Settings_Design_Slide_Transition_Bounce_In_Out"},{"value":"cubic-bezier(0.86,0,0.07,1)","title":"ProGallery_Settings_Design_Slide_Transition_Expo"}],"type":"OPTIONS","default":"cubic-bezier(0.46,0.1,0.25,1)"},"controllers_layoutParams_external_info_placement":{"key":"controllers_layoutParams_external_info_placement","title":"Native_ProGallery_Settings_Text_Placement","controller":"THUMBNAILS","options":[{"value":"BELOW","title":"Native_ProGallery_Settings_Text_Placement_Below","icon":"infoPosition_below"},{"value":"ABOVE","title":"Native_ProGallery_Settings_Text_Placement_Above","icon":"infoPosition_above"},{"value":"RIGHT","title":"Native_ProGallery_Settings_Text_Placement_Right","icon":"infoPosition_right"},{"value":"LEFT","title":"Native_ProGallery_Settings_Text_Placement_Left","icon":"infoPosition_left"},{"value":"ALTERNATE_HORIZONTALLY","title":"Native_ProGallery_Settings_Text_Placement_Alt_Horizontal","icon":"infoPosition_left"},{"value":"ALTERNATE_VERTICALLY","title":"Native_ProGallery_Settings_Text_Placement_Alt_Vertical","icon":"infoPosition_above"}],"type":"OPTIONS","default":"BELOW"},"controllers_layoutParams_external_info_SocialButtonsHorizontalAlignment":{"key":"controllers_layoutParams_external_info_SocialButtonsHorizontalAlignment","title":"ProGallery_NewInfo_Icons_Ext_Alignment_Label","options":[{"value":"LEFT","title":"ProGallery_NewInfo_Icons_Ext_Alignment_Left","icon":"horizontal_left"},{"value":"CENTER","title":"ProGallery_NewInfo_Icons_Ext_Alignment_Center","icon":"alignment_center"},{"value":"RIGHT","title":"ProGallery_NewInfo_Icons_Ext_Alignment_Right","icon":"horizontal_right"}],"type":"OPTIONS","default":"LEFT","thumbnailsSize":"SMALL","controller":"THUMBNAILS"},"controllers_layoutParams_internal_info_SocialButtonsHorizontalAlignment":{"key":"controllers_layoutParams_internal_info_SocialButtonsHorizontalAlignment","title":"ProGallery_NewInfo_Icons_Alignment_Label","options":[{"value":"LEFT","title":"ProGallery_NewInfo_Icons_Alignment_Left","icon":"horizontal_left"},{"value":"CENTER","title":"ProGallery_NewInfo_Icons_Alignment_Center","icon":"alignment_center"},{"value":"RIGHT","title":"ProGallery_NewInfo_Icons_Alignment_Right","icon":"horizontal_right"}],"type":"OPTIONS","default":"LEFT","thumbnailsSize":"SMALL","controller":"THUMBNAILS"},"layoutParams_info_placement":{"key":"layoutParams_info_placement","title":"Native_ProGallery_Settings_Text_Placement","controller":"THUMBNAILS","options":[{"value":"BELOW","title":"Native_ProGallery_Settings_Text_Placement_Below","icon":"infoPosition_below"},{"value":"ABOVE","title":"Native_ProGallery_Settings_Text_Placement_Above","icon":"infoPosition_above"},{"value":"RIGHT","title":"Native_ProGallery_Settings_Text_Placement_Right","icon":"infoPosition_right"},{"value":"LEFT","title":"Native_ProGallery_Settings_Text_Placement_Left","icon":"infoPosition_left"},{"value":"OVERLAY","title":"Native_ProGallery_Settings_Text_Placement_Hover","icon":"infoPosition_onImage"},{"value":"ALTERNATE_HORIZONTALLY","title":"Native_ProGallery_Settings_Text_Placement_Alt_Horizontal","icon":"infoPosition_left"},{"value":"ALTERNATE_VERTICALLY","title":"Native_ProGallery_Settings_Text_Placement_Alt_Vertical","icon":"infoPosition_above"}],"type":"OPTIONS","default":"OVERLAY"},"controllers_layoutParams_info_allowTitle":{"key":"controllers_layoutParams_info_allowTitle","title":"Native_ProGallery_Settings_Text_ShowTitle","type":"BOOLEAN","default":false},"controllers_layoutParams_info_allowDescription":{"key":"controllers_layoutParams_info_allowDescription","title":"Native_ProGallery_Settings_Text_ShowDescription","type":"BOOLEAN","default":false},"controllers_layoutParams_info_allowTitleAndDescription":{"key":"controllers_layoutParams_info_allowTitleAndDescription","title":"Native_ProGallery_Settings_Text","type":"CHECKBOX","options":[{"title":"Native_ProGallery_Settings_Text_Title","value":"controllers_layoutParams_info_allowTitle"},{"title":"Native_ProGallery_Settings_Text_Description","value":"controllers_layoutParams_info_allowDescription"}],"controller":"CHECKBOX","default":""},"controllers_layoutParams_info_verticalPadding":{"key":"controllers_layoutParams_info_verticalPadding","title":"Native_ProGallery_Settings_Text_Padding_Vertical","type":"NUMBER","min":0,"max":50,"default":0,"unit":"px"},"controllers_layoutParams_info_horizontalPadding":{"key":"controllers_layoutParams_info_horizontalPadding","title":"Native_ProGallery_Settings_Text_Padding_Horizontal","type":"NUMBER","min":0,"max":50,"default":0,"unit":"px"},"controllers_layoutParams_info_verticalAlignment":{"key":"controllers_layoutParams_info_verticalAlignment","title":"Native_ProGallery_Settings_Text_Alignment_Vertical","type":"OPTIONS","controller":"THUMBNAILS","thumbnailsSize":"SMALL","options":[{"value":"START","title":"Native_ProGallery_Settings_Text_Alignment_Vertical_Top","icon":"vertical_top"},{"value":"CENTER","title":"Native_ProGallery_Settings_Text_Algnment_Vertical_Center","icon":"alignment_center"},{"value":"END","title":"Native_ProGallery_Settings_Text_Algnment_Vertical_Bottom","icon":"vertical_bottom"}],"default":"CENTER"},"controllers_layoutParams_info_horizontalAlignment":{"key":"controllers_layoutParams_info_horizontalAlignment","title":"Native_ProGallery_Settings_Text_Alignment_Horizontal","type":"OPTIONS","controller":"THUMBNAILS","thumbnailsSize":"SMALL","options":[{"value":"START","title":"Native_ProGallery_Settings_Text_Alignment_Horizontal_Left","icon":"horizontal_left"},{"value":"CENTER","title":"Native_ProGallery_Settings_Text_Algnment_Horizontal_Center","icon":"alignment_center"},{"value":"END","title":"Native_ProGallery_Settings_Text_Algnment_Horizontal_Right","icon":"horizontal_right"}],"default":"CENTER"},"layoutParams_info_sizeUnits":{"key":"layoutParams_info_sizeUnits","title":"Native_ProGallery_Settings_Text_Size","options":[{"value":"PIXEL","title":"Native_ProGallery_Settings_Text_Size_Pixels"},{"value":"PERCENT","title":"Native_ProGallery_Settings_Text_Size_Percentage"}],"type":"OPTIONS","default":"PIXEL"},"layoutParams_info_height":{"key":"layoutParams_info_height","title":"Native_ProGallery_Settings_Text_Size_Height_Pixels","type":"NUMBER","min":0,"max":800,"default":200,"unit":"px"},"controllers_layoutParams_info_width_pixel":{"key":"controllers_layoutParams_info_width_pixel","title":"Native_ProGallery_Settings_Text_Size_Width_Pixels","type":"NUMBER","min":0,"max":1000,"default":200,"unit":"px"},"controllers_layoutParams_info_width_percent":{"key":"controllers_layoutParams_info_width_percent","title":"Native_ProGallery_Settings_Text_Size_Width_Percentage","type":"NUMBER","min":0,"max":90,"default":50},"behaviourParams_item_overlay_hoveringBehaviour":{"key":"behaviourParams_item_overlay_hoveringBehaviour","title":"Native_ProGallery_Settings_Text_Overlay","options":[{"value":"APPEARS","title":"Native_ProGallery_Settings_Text_Overlay_Appears"},{"value":"DISAPPEARS","title":"Native_ProGallery_Settings_Text_Overlay_Disappears"},{"value":"NO_CHANGE","title":"Native_ProGallery_Settings_Text_Overlay_Nothing"},{"value":"NEVER_SHOW","title":"Native_ProGallery_Settings_Text_Overlay_Never"}],"type":"OPTIONS","default":"NEVER_SHOW"},"controllers_behaviourParams_item_overlay_overlayType":{"key":"controllers_behaviourParams_item_overlay_overlayType","title":"Native_ProGallery_Settings_FullOrPartialOverlay","options":[{"value":"FULL","title":"Native_ProGallery_Settings_Text_Overlay_Full"},{"value":"PARTIAL","title":"Native_ProGallery_Settings_Text_Overlay_Partial"}],"type":"OPTIONS","default":"FULL"},"behaviourParams_item_overlay_sizeUnits":{"key":"behaviourParams_item_overlay_sizeUnits","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Size_Set","options":[{"value":"PIXEL","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Size_Pixel"},{"value":"PERCENT","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Size_Percentage"}],"type":"OPTIONS","default":"PERCENT"},"controllers_behaviourParams_item_overlay_enabled":{"key":"controllers_behaviourParams_item_overlay_enabled","title":"Native_ProGallery_Layout_Overlay_Header","type":"TOGGLED_SECTION","default":true,"isExperimental":false},"controllers_layoutParams_info_newInfo_external_enabled":{"key":"controllers_layoutParams_info_newInfo_external_enabled","title":"Native_ProGallery_Layout_NewInfoAroundImage","type":"TOGGLED_SECTION","default":true,"isExperimental":false},"controllers_behaviourParams_item_overlay_size_percent":{"key":"controllers_behaviourParams_item_overlay_size_percent","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Set_Percentage","type":"NUMBER","min":0,"max":100,"default":100,"unit":"%"},"controllers_behaviourParams_item_overlay_size_pixel":{"key":"controllers_behaviourParams_item_overlay_size_pixel","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Set_Pixels","type":"NUMBER","min":0,"max":1000,"default":100,"unit":"px"},"behaviourParams_item_overlay_position":{"key":"behaviourParams_item_overlay_position","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position","options":[{"value":"LEFT","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Left"},{"value":"RIGHT","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Right"},{"value":"BOTTOM","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Bottom"},{"value":"TOP","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Top"},{"value":"CENTERED_VERTICALLY","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Center_Vertical"},{"value":"CENTERED_HORIZONTALLY","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Center_Horizontal"}],"type":"OPTIONS","default":"BOTTOM"},"behaviourParams_item_overlay_padding":{"key":"behaviourParams_item_overlay_padding","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Padding","type":"NUMBER","min":0,"max":200,"default":0,"unit":"px"},"behaviourParams_item_overlay_hoverAnimation":{"key":"behaviourParams_item_overlay_hoverAnimation","title":"Native_ProGallery_Settings_Text_Overlay_Hover","controller":"THUMBNAILS","options":[{"value":"NO_EFFECT","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Nothing","emptyState":true},{"value":"EXPAND","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Expand","icon":"overlay_expand"},{"value":"SLIDE_UP","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Slide_Up","icon":"overlay_slideUp"},{"value":"SLIDE_RIGHT","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Slide_Right","icon":"overlay_slideRight"},{"value":"SLIDE_DOWN","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Slide_Down","icon":"overlay_slideDown"},{"value":"SLIDE_LEFT","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Slide_Left","icon":"overlay_slideLeft"}],"type":"OPTIONS","default":"NO_EFFECT"},"controllers_behaviourParams_item_overlay_hoverAnimationBehavior":{"key":"controllers_behaviourParams_item_overlay_hoverAnimationBehavior","title":"Native_ProGallery_Animation_HoverOverlay_Title","description":"Native_ProGallery_Animation_HoverOverlay_Tooltip","options":[{"value":"APPEARS","title":"Native_ProGallery_Animation_HoverOverlay_Option1"},{"value":"DISAPPEARS","title":"Native_ProGallery_Animation_HoverOverlay_Option2"}],"type":"OPTIONS","default":"APPEARS"},"behaviourParams_item_threeDimensionalScene_playTrigger":{"key":"behaviourParams_item_threeDimensionalScene_playTrigger","title":"Native_ProGallery_Settings_3D_Play_Trigger","options":[{"value":"HOVER","title":"Native_ProGallery_Settings_3D_Play_Trigger_Hover"},{"value":"CLICK","title":"Native_ProGallery_Settings_3D_Play_Trigger_Click"},{"value":"AUTO","title":"Native_ProGallery_Settings_3D_Play_Trigger_Auto"}],"type":"OPTIONS","default":"AUTO"},"controllers_experimental_useNewInfo":{"isExperimental":true,"key":"controllers_experimental_useNewInfo","title":"Native_ProGallery_Layout_UseNewInfo","type":"OPTIONS","default":"false","thumbnailsSize":"SMALL","options":[{"value":"false","title":"Native_ProGallery_Layout_UseNewInfoNo"},{"value":"true","title":"Native_ProGallery_Layout_UseNewInfoYes"}]},"controllers_stylableOptions_arrowContainer":{"key":"controllers_stylableOptions_arrowContainer","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::gallery-arrows","title":"Native_ProGallery_Design_Option9_Arrow_Container"},"controllers_stylableOptions_arrowContainerHover":{"key":"controllers_stylableOptions_arrowContainerHover","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::gallery-arrows:hover","title":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_arrowIcon":{"key":"controllers_stylableOptions_arrowIcon","type":"STYLABLE","features":["ICON"],"selector":".root::gallery-arrows::gallery-arrows-icon","title":"Native_ProGallery_Design_Option8_Arrow_Icon"},"controllers_stylableOptions_arrowIconHover":{"key":"controllers_stylableOptions_arrowIconHover","type":"STYLABLE","features":["ICON"],"selector":".root::gallery-arrows:hover::gallery-arrows-icon","title":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_showManageMedia":{"key":"controllers_showManageMedia","title":"NOT SUPPORTED Force show manage media","type":"BOOLEAN","default":false,"description":"this is to allow specific galleries to show the manage media"}}'),Br=JSON.parse('{"$schema":"./ProGallery.options.schema.json","controllers_layoutParams_structure_galleryRatio_method":{"key":"controllers_layoutParams_structure_galleryRatio_method","title":"Native_ProGallery_GalleryHeight_Label","type":"OPTIONS","controller":"RADIO","thumbnailsSize":"MEDIUM","default":"MANUAL","options":[{"value":"MANUAL","title":"Native_ProGallery_GalleryHeight_Option1"},{"value":"FIXED","title":"Native_ProGallery_GalleryHeight_Option2"}],"description":"Native_ProGallery_GalleryRatio_Tooltip"},"behaviourParams_gallery_blockContextMenu":{"key":"behaviourParams_gallery_blockContextMenu","title":"Native_ProGallery_Settings_MediaProtection_Label","type":"BOOLEAN","default":true,"description":"Native_ProGallery_Settings_MediaProtection_Tooltip"},"controllers_layoutParams_structure_galleryRatio_value":{"key":"controllers_layoutParams_structure_galleryRatio_value","title":"Native_ProGallery_GalleryRatio","type":"OPTIONS","controller":"THUMBNAILS","default":1,"thumbnailsSize":"SMALL","options":[{"value":3,"title":"Native_ProGallery_Layout_CropRatio_List_Item0","icon":"imageRatio_3_1"},{"value":1.7777777777777777,"title":"Native_ProGallery_Layout_CropRatio_List_Item1","icon":"imageRatio_16_9"},{"value":1.3333333333333333,"title":"Native_ProGallery_Layout_CropRatio_List_Item2","icon":"imageRatio_4_3"},{"value":1,"title":"Native_ProGallery_Layout_CropRatio_List_Item3","icon":"imageRatio_1_1"},{"value":0.75,"title":"Native_ProGallery_Layout_CropRatio_List_Item4","icon":"imageRatio_3_4"}]},"layoutParams_structure_galleryLayout":{"key":"layoutParams_structure_galleryLayout","title":"ProGallery_Layout_Tab_Custom_Label","noBottomDivider":true,"type":"OPTIONS","controller":"THUMBNAILS","options":[{"value":2,"title":"ProGallery_Layout_Layouts_Type3","icon":"layouts_grid"},{"value":1,"title":"ProGallery_Layout_Layouts_Type13","icon":"layouts_masonry"},{"value":0,"title":"ProGallery_Layout_Layouts_Type12","icon":"layouts_collage"},{"value":4,"title":"ProGallery_Layout_Layouts_Type8","icon":"layouts_slider"},{"value":5,"title":"ProGallery_Layout_Layouts_Type9","icon":"layouts_slideshow"},{"value":3,"title":"ProGallery_Layout_Layouts_Type7","icon":"layouts_thumbnail"},{"value":10,"title":"ProGallery_Layout_Layouts_Type14","icon":"layouts_bricks"},{"value":6,"title":"ProGallery_Layout_Layouts_Type10","icon":"layouts_strip"},{"value":7,"title":"ProGallery_Layout_Layouts_Type6","icon":"layouts_column"},{"value":11,"title":"ProGallery_Layout_Layouts_Type15","icon":"layouts_mix"},{"value":12,"title":"ProGallery_Layout_Layouts_Type16","icon":"layouts_alternate"}],"default":0},"layoutParams_structure_scrollDirection":{"key":"layoutParams_structure_scrollDirection","title":"Native_ProGallery_Layout_Orientation_Label","type":"OPTIONS","controller":"RADIO","default":"VERTICAL","options":[{"value":"VERTICAL","title":"ProGallery_Layout_DisplaySection_Option1"},{"value":"HORIZONTAL","title":"ProGallery_Layout_DisplaySection_Option2"}]},"controllers_layoutParams_structure_imageWidth_method":{"key":"controllers_layoutParams_structure_imageWidth_method","title":"Native_ProGallery_Layout_GalleryWidth_Label","type":"OPTIONS","controller":"RADIO","thumbnailsSize":"MEDIUM","default":"FIXED","options":[{"value":"RESPONSIVE","title":"Native_ProGallery_Layout_GalleryWidth_Responsive"},{"value":"FIXED","title":"Native_ProGallery_Layout_GalleryWidth_Fixed"}]},"controllers_layoutParams_structure_numberOfDisplayedItems":{"key":"controllers_layoutParams_structure_numberOfDisplayedItems","title":"Native_ProGallery_Layout_GalleryWidth_Responsive_Number","default":3,"max":10,"min":1,"type":"NUMBER"},"layoutParams_structure_layoutOrientation":{"key":"layoutParams_structure_layoutOrientation","controller":"THUMBNAILS","title":"ProGallery_Layout_DisplaySection_Orientation_SubHeader_New","options":[{"value":"VERTICAL","title":"ProGallery_Layout_DisplaySection_Orientation_Option1_New","icon":"galleryOrientation_columns"},{"value":"HORIZONTAL","title":"ProGallery_Layout_DisplaySection_Orientation_Option2_New","icon":"galleryOrientation_rows"}],"type":"OPTIONS","thumbnailsSize":"MEDIUM","default":"VERTICAL"},"behaviourParams_gallery_layoutDirection":{"key":"behaviourParams_gallery_layoutDirection","title":"ProGallery_Layout_Layout_Direction_Label","controller":"RADIO","type":"OPTIONS","default":"LEFT_TO_RIGHT","description":"ProGallery_Layout_Layout_Direction_Tooltip","options":[{"value":"LEFT_TO_RIGHT","title":"ProGallery_Layout_Layout_Direction_LTR"},{"value":"RIGHT_TO_LEFT","title":"ProGallery_Layout_Layout_Direction_RTL"}]},"layoutParams_structure_itemSpacing":{"key":"layoutParams_structure_itemSpacing","title":"ProGallery_Layout_Spacing","type":"NUMBER","min":0,"max":300,"step":1,"default":10,"unit":"px"},"layoutParams_structure_numberOfGridRows":{"key":"layoutParams_structure_numberOfGridRows","title":"ProGallery_Layouts_Columns_Column_Label","default":1,"max":3,"min":1,"type":"NUMBER"},"layoutParams_structure_numberOfColumns":{"key":"layoutParams_structure_numberOfColumns","title":"Native_ProGallery_Layout_Images_Per_Row","default":3,"max":10,"min":1,"type":"NUMBER"},"layoutParams_groups_density":{"key":"layoutParams_groups_density","title":"ProGallery_Layout_CollageDens_Label","type":"FLOAT","default":0.8,"min":0,"max":1,"step":0.1,"unit":"%"},"layoutParams_targetItemSize_value":{"key":"layoutParams_targetItemSize_value","title":"ProGallery_Layout_Image_Size","type":"NUMBER","default":48,"min":1,"max":100,"step":1,"unit":"px"},"layoutParams_crop_method":{"key":"layoutParams_crop_method","title":"ProGallery_Layout_Thumbnail_Resize_New","type":"OPTIONS","controller":"THUMBNAILS","thumbnailsSize":"MEDIUM","default":"FILL","options":[{"value":"FILL","title":"ProGallery_Layout_Thumbnail_Crop","icon":"thumbnailResize_crop"},{"value":"FIT","title":"ProGallery_Layout_Thumbnail_Fit","icon":"thumbnailResize_fit"}]},"layoutParams_crop_ratios":{"key":"layoutParams_crop_ratios","type":"OPTIONS","controller":"THUMBNAILS","title":"ProGallery_Layouts_Slider_ImageRatio_Label","default":1,"thumbnailsSize":"SMALL","options":[{"value":1.7777777777777777,"title":"Native_ProGallery_Layout_CropRatio_List_Item1","icon":"imageRatio_16_9"},{"value":1.3333333333333333,"title":"Native_ProGallery_Layout_CropRatio_List_Item2","icon":"imageRatio_4_3"},{"value":1,"title":"Native_ProGallery_Layout_CropRatio_List_Item3","icon":"imageRatio_1_1"},{"value":0.75,"title":"Native_ProGallery_Layout_CropRatio_List_Item4","icon":"imageRatio_3_4"},{"value":0.5625,"title":"Native_ProGallery_Layout_CropRatio_List_Item5","icon":"imageRatio_9_16"}]},"layoutParams_structure_responsiveMode":{"key":"layoutParams_structure_responsiveMode","title":"Native_ProGallery_Layout_ResponsiveType_New","type":"OPTIONS","controller":"RADIO","default":"FIT_TO_SCREEN","options":[{"value":"FIT_TO_SCREEN","title":"ProGallery_Layouts_Grid_Responsive_Option1"},{"value":"SET_ITEMS_PER_ROW","title":"ProGallery_Layouts_Grid_Responsive_Option2_New"}]},"layoutParams_thumbnails_alignment":{"key":"layoutParams_thumbnails_alignment","title":"ProGallery_Layout_Layouts_Thumbnails_Placement_Label","type":"OPTIONS","controller":"THUMBNAILS","thumbnailsSize":"MEDIUM","options":[{"value":"BOTTOM","title":"Native_ProGallery_Layout_ThumbnailPlacement_List_Item1","icon":"placement_down"},{"value":"TOP","title":"Native_ProGallery_Layout_ThumbnailPlacement_List_Item2","icon":"placement_up"},{"value":"RIGHT","title":"Native_ProGallery_Layout_ThumbnailPlacement_List_Item3","icon":"placement_right"},{"value":"LEFT","title":"Native_ProGallery_Layout_ThumbnailPlacemento_List_Item4","icon":"placement_left"}],"default":"BOTTOM"},"layoutParams_thumbnails_size":{"key":"layoutParams_thumbnails_size","title":"ProGallery_Layout_Thumbnail_Size","type":"NUMBER","default":120,"min":30,"max":300,"unit":"px"},"layoutParams_thumbnails_spacing":{"key":"layoutParams_thumbnails_spacing","title":"ProGallery_Layout_Layouts_Thumbnails_Spacing_Label","type":"NUMBER","default":4,"min":0,"max":30,"unit":"px"},"controllers_layoutParams_thumbnails_marginToGallery":{"key":"controllers_layoutParams_thumbnails_marginToGallery","title":"ProGallery_Layout_Layouts_Thumbnails_marginToGallery_Label","description":"ProGallery_Layout_marginToGallery_Tooltip","type":"NUMBER","default":8,"min":0,"max":400},"behaviourParams_gallery_vertical_loadMore_enable":{"key":"behaviourParams_gallery_vertical_loadMore_enable","title":"ProGallery_Layout_LoadMore_Section_Label","type":"BOOLEAN","default":false},"behaviourParams_gallery_vertical_loadMore_text":{"key":"behaviourParams_gallery_vertical_loadMore_text","title":"ProGallery_Layout_LoadMore_Button_Title","type":"TEXT","default":"Load More"},"behaviourParams_gallery_horizontal_navigationDuration":{"key":"behaviourParams_gallery_horizontal_navigationDuration","title":"ProGallery_Settings_Design_Scroll_Duration_Title_New","type":"NUMBER","default":800,"min":100,"max":1000,"step":100},"behaviourParams_gallery_horizontal_loop":{"key":"behaviourParams_gallery_horizontal_loop","title":"ProGallery_Expand_Loop_Label","description":"ProGallery_Expand_Loop_Tooltip","type":"BOOLEAN","default":false},"behaviourParams_gallery_horizontal_autoSlide_interval":{"key":"behaviourParams_gallery_horizontal_autoSlide_interval","title":"ProGallery_Layout_SlideshowSection_Interval_New","min":2,"max":30,"type":"NUMBER","default":4},"behaviourParams_gallery_horizontal_autoSlide_speed":{"key":"behaviourParams_gallery_horizontal_autoSlide_speed","title":"ProGallery_Layout_SlideshowSection_Layout_Speed_New","min":1,"max":500,"type":"NUMBER","default":50},"behaviourParams_gallery_horizontal_autoSlide_pauseOnHover":{"key":"behaviourParams_gallery_horizontal_autoSlide_pauseOnHover","title":"ProGallery_Layout_SlideshowSection_Pause_On_Hover","type":"BOOLEAN","default":true},"layoutParams_navigationArrows_enable":{"key":"layoutParams_navigationArrows_enable","title":"ProGallery_Design_Navigation_Arrows_Toggle","type":"BOOLEAN","default":true},"layoutParams_navigationArrows_size":{"key":"layoutParams_navigationArrows_size","title":"ProGallery_Design_Arrows_Size","type":"NUMBER","min":8,"max":150,"default":23,"unit":"px"},"layoutParams_navigationArrows_position":{"key":"layoutParams_navigationArrows_position","title":"ProGallery_Design_Arrows_Position_Title","type":"OPTIONS","controller":"RADIO","default":"ON_GALLERY","options":[{"value":"ON_GALLERY","title":"ProGallery_Design_Arrows_Position_On_Gallery"},{"value":"OUTSIDE_GALLERY","title":"ProGallery_Design_Arrows_Position_Outside"},{"value":"MOUSE_CURSOR","title":"Native_ProGallery_Layout_Arrows_Position_Cursor"}]},"layoutParams_navigationArrows_container_type":{"key":"layoutParams_navigationArrows_container_type","title":"Native_ProGallery_Design_Arrows_Container_Type","type":"OPTIONS","default":"NONE","options":[{"value":"NONE","title":"Native_ProGallery_Design_Arrows_Container_None"},{"value":"BOX","title":"Native_ProGallery_Design_Arrows_Container_Box"}]},"layoutParams_navigationArrows_mouseCursorContainerMaxWidth":{"key":"layoutParams_navigationArrows_mouseCursorContainerMaxWidth","type":"OPTIONS","title":"Native_ProGallery_Layout_Arrows_Position_Cursor_Label","description":"Native_ProGallery_Layout_Arrows_Position_Cursor_Tooltip","controller":"THUMBNAILS","thumbnailsSize":"LARGE","default":"100","options":[{"value":"100","title":"Native_ProGallery_Layout_Arrows_Position_Cursor_EntireGallery","icon":"cursor_full_gallery"},{"value":"30","title":"Native_ProGallery_Layout_Arrows_Position_Cursor_GalleryEdges","icon":"cursor_edges_gallery"}]},"layoutParams_navigationArrows_verticalAlignment":{"key":"layoutParams_navigationArrows_verticalAlignment","title":"ProGallery_settings_design_verticalposition","type":"OPTIONS","default":"ITEM_CENTER","options":[{"value":"ITEM_CENTER","title":"ProGallery_settings_design_verticalposition_center_gallery"},{"value":"IMAGE_CENTER","title":"ProGallery_settings_design_verticalposition_center_image"},{"value":"INFO_CENTER","title":"ProGallery_settings_design_verticalposition_center_text"}]},"behaviourParams_item_content_hoverAnimation":{"key":"behaviourParams_item_content_hoverAnimation","title":"ProGallery_Design_Image_Hover_Animation_Label","type":"OPTIONS","controller":"THUMBNAILS","default":"NO_EFFECT","options":[{"value":"NO_EFFECT","title":"ProGallery_Design_Image_Hover_Animation_NoEffect","emptyState":true},{"value":"ZOOM_IN","title":"ProGallery_Design_Image_Hover_Animation_ZoomIn","icon":"hover_zoomIn"},{"value":"BLUR","title":"ProGallery_Design_Image_Hover_Animation_Blur","icon":"hover_blur"},{"value":"GRAYSCALE","title":"ProGallery_Design_Image_Hover_Animation_Grayscale","icon":"hover_grayscale"},{"value":"SHRINK","title":"ProGallery_Design_Image_Hover_Animation_Shrink","icon":"hover_shrink"},{"value":"INVERT","title":"ProGallery_Design_Image_Hover_Animation_Invert","icon":"hover_invert"},{"value":"COLOR_IN","title":"ProGallery_Design_Image_Hover_Animation_ColorIn","icon":"hover_color"},{"value":"DARKENED","title":"ProGallery_Design_Image_Hover_Animation_Darkened","icon":"hover_darken"},{"value":"MAIN_COLOR","title":"ProGallery_Design_Image_Hover_Animation_MainColor","icon":"hover_maincolor"}],"description":"ProGallery_Design_Image_Hover_Animation_Title"},"behaviourParams_item_content_loader":{"key":"behaviourParams_item_content_loader","title":"ProGallery_Settings_Image_Loading_Mode","options":[{"value":"BLUR","title":"ProGallery_Settings_Image_Loading_Mode_Blur"},{"value":"MAIN_COLOR","title":"ProGallery_Settings_Image_Loading_Mode_Color_Main_Color"}],"type":"OPTIONS","controller":"RADIO","default":"MAIN_COLOR"},"behaviourParams_item_content_placementAnimation":{"key":"behaviourParams_item_content_placementAnimation","title":"Image Placement Animation","type":"OPTIONS","default":"NO_EFFECT","options":[{"value":"NO_EFFECT","title":"No Effect"},{"value":"SLIDE","title":"Slide"}]},"behaviourParams_gallery_scrollAnimation":{"key":"behaviourParams_gallery_scrollAnimation","title":"ProGallery_Design_Scroll_Animation_Label","description":"ProGallery_Design_Scroll_Animation_TOOLTIP","controller":"THUMBNAILS","options":[{"value":"NO_EFFECT","title":"ProGallery_Design_Scroll_Animation_NoEffect","emptyState":true},{"value":"FADE_IN","title":"ProGallery_Design_Scroll_Animation_FadeIn","icon":"scroll_fadeIn"},{"value":"GRAYSCALE","title":"ProGallery_Design_Scroll_Animation_Grayscale","icon":"scroll_grayscale"},{"value":"SLIDE_UP","title":"ProGallery_Design_Scroll_Animation_SlideUp","icon":"scroll_slideUp"},{"value":"SLIDE_UP","title":"ProGallery_Design_Scroll_Animation_SlideIn","icon":"scroll_slideIn","id":"SLIDE_IN"},{"value":"EXPAND","title":"ProGallery_Design_Scroll_Animation_Expand","icon":"scroll_expand"},{"value":"SHRINK","title":"ProGallery_Design_Scroll_Animation_Shrink","icon":"scroll_shrink"},{"value":"ZOOM_OUT","title":"ProGallery_Design_Scroll_Animation_ZoomOut","icon":"scroll_zoomOut"},{"value":"ONE_COLOR","title":"ProGallery_Design_Scroll_Animation_OneColor","icon":"scroll_oneColor"}],"type":"OPTIONS","default":"NO_EFFECT"},"behaviourParams_gallery_horizontal_slideAnimation":{"key":"behaviourParams_gallery_horizontal_slideAnimation","title":"ProGallery_Design_Slide_Animation_Label","type":"OPTIONS","default":"SCROLL","controller":"THUMBNAILS","options":[{"value":"SCROLL","title":"ProGallery_Design_Slide_Animation_Scroll","icon":"slide_scroll"},{"value":"FADE","title":"ProGallery_Design_Slide_Animation_Fade","icon":"slide_fade"},{"value":"DECK","title":"ProGallery_Design_Slide_Animation_Stack","icon":"slide_stack"}],"description":"ProGallery_Design_Slide_Animation_Title"},"behaviourParams_item_video_enablePlayButton":{"key":"behaviourParams_item_video_enablePlayButton","title":"ProGallery_Settings_Show_Play_Button_Label","type":"BOOLEAN","default":true},"behaviourParams_item_video_playTrigger":{"key":"behaviourParams_item_video_playTrigger","title":"ProGallery_Settings_Play_Label","options":[{"value":"HOVER","title":"ProGallery_Settings_Hover_Label"},{"value":"AUTO","title":"ProGallery_Settings_Auto_Label"},{"value":"CLICK","title":"ProGallery_Settings_Click_Label"}],"type":"OPTIONS","default":"HOVER"},"behaviourParams_item_video_speed":{"key":"behaviourParams_item_video_speed","title":"ProGallery_Settings_Playback_Label","type":"OPTIONS","options":[{"value":0.25,"title":"ProGallery_Settings_Playback_25"},{"value":0.5,"title":"ProGallery_Settings_Playback_50"},{"value":0.75,"title":"ProGallery_Settings_Playback_75"},{"value":1,"title":"ProGallery_Settings_Playback_100"},{"value":1.25,"title":"ProGallery_Settings_Playback_125"},{"value":1.5,"title":"ProGallery_Settings_Playback_150"},{"value":1.75,"title":"ProGallery_Settings_Playback_175"},{"value":2,"title":"ProGallery_Settings_Playback_200"}],"default":1},"controllers_optionsMap_behaviourParams_item_video_volume":{"key":"controllers_optionsMap_behaviourParams_item_video_volume","title":"ProGallery_Settings_Sound_Label","type":"BOOLEAN","default":false},"behaviourParams_item_video_loop":{"key":"behaviourParams_item_video_loop","title":"ProGallery_Settings_Loop_Label","type":"BOOLEAN","default":true,"noBottomDivider":true},"behaviourParams_item_clickAction":{"key":"behaviourParams_item_clickAction","title":"ProGallery_Settings_ClickOptions_Label","options":[{"value":"EXPAND","title":"ProGallery_Settings_ClickOptions_Expand"},{"value":"FULLSCREEN","title":"ProGallery_Settings_ClickOptions_Fullscreen"},{"value":"LINK","title":"ProGallery_Settings_ClickOptions_Link"},{"value":"NOTHING","title":"ProGallery_Settings_ClickOptions_Nothing"},{"value":"MAGNIFY","title":"ProGallery_Expand_Viewing_Settings_Magnifying"}],"type":"OPTIONS","default":"NOTHING","isRelevantPlaceholder":{"message":"Native_ProGallery_Settings_ClickOptions_Disabled"}},"behaviourParams_item_content_magnificationValue":{"key":"behaviourParams_item_content_magnificationValue","title":"ProGallery_Expand_Viewing_Settings_Magnifying_Size","type":"FLOAT","default":2,"min":1.5,"max":5,"step":0.5},"layoutParams_navigationArrows_padding":{"key":"layoutParams_navigationArrows_padding","title":"ProGallery_settings_design_Horizontal_padding","type":"NUMBER","min":0,"max":100,"default":23,"unit":"px"},"behaviourParams_gallery_vertical_loadMore_amount":{"key":"behaviourParams_gallery_vertical_loadMore_amount","title":"ProGallery_Layout_LoadMore_Amount","type":"OPTIONS","controller":"RADIO","default":"ALL","options":[{"value":"PARTIAL","title":"ProGallery_Layout_LoadMore_Amount_Partial"},{"value":"ALL","title":"ProGallery_Layout_LoadMore_Amount_All"}]},"behaviourParams_gallery_horizontal_autoSlide_behaviour":{"key":"behaviourParams_gallery_horizontal_autoSlide_behaviour","title":"ProGallery_Layout_SlideshowSection_Slide_Automatically","type":"OPTIONS","default":"OFF","options":[{"value":"OFF","title":"Native_ProGallery_Layout_Slideshow_List_Off"},{"value":"INTERVAL","title":"ProGallery_Layout_SlideshowSection_Interval_Header"},{"value":"CONTINUOUS","title":"ProGallery_Layout_SlideshowSection_Continuous_Header"}]},"behaviourParams_gallery_horizontal_slideTransition":{"key":"behaviourParams_gallery_horizontal_slideTransition","title":"ProGallery_Settings_Design_Slide_Transition_Title","options":[{"value":"linear","title":"ProGallery_Settings_Design_Slide_Transition_Linear"},{"value":"cubic-bezier(0.46,0.1,0.25,1)","title":"ProGallery_Settings_Design_Slide_Transition_Ease_In_Out"},{"value":"cubic-bezier(0.86,0,0.5,1)","title":"ProGallery_Settings_Design_Slide_Transition_Ease_In"},{"value":"cubic-bezier(0.31,1.17,0.58,1.07)","title":"ProGallery_Settings_Design_Slide_Transition_Ease_Out"},{"value":"cubic-bezier(0.49,-0.12,0.49,0.04)","title":"ProGallery_Settings_Design_Slide_Transition_Bounce_In"},{"value":"cubic-bezier(0.58,1.65,0.29,0.95)","title":"ProGallery_Settings_Design_Slide_Transition_Bounce_Out"},{"value":"cubic-bezier(0.6,-0.36,0.41,1.23)","title":"ProGallery_Settings_Design_Slide_Transition_Bounce_In_Out"},{"value":"cubic-bezier(0.86,0,0.07,1)","title":"ProGallery_Settings_Design_Slide_Transition_Expo"}],"type":"OPTIONS","default":"cubic-bezier(0.46,0.1,0.25,1)"},"controllers_layoutParams_external_info_placement":{"key":"controllers_layoutParams_external_info_placement","title":"Native_ProGallery_Settings_Text_Placement","controller":"THUMBNAILS","options":[{"value":"BELOW","title":"Native_ProGallery_Settings_Text_Placement_Below","icon":"infoPosition_below"},{"value":"ABOVE","title":"Native_ProGallery_Settings_Text_Placement_Above","icon":"infoPosition_above"},{"value":"RIGHT","title":"Native_ProGallery_Settings_Text_Placement_Right","icon":"infoPosition_right"},{"value":"LEFT","title":"Native_ProGallery_Settings_Text_Placement_Left","icon":"infoPosition_left"},{"value":"ALTERNATE_HORIZONTALLY","title":"Native_ProGallery_Settings_Text_Placement_Alt_Horizontal","icon":"infoPosition_alternateHorizontally"},{"value":"ALTERNATE_VERTICALLY","title":"Native_ProGallery_Settings_Text_Placement_Alt_Vertical","icon":"infoPosition_alternateVertically"}],"type":"OPTIONS","default":"BELOW"},"controllers_layoutParams_external_info_SocialButtonsHorizontalAlignment":{"key":"controllers_layoutParams_external_info_SocialButtonsHorizontalAlignment","title":"ProGallery_NewInfo_Icons_Ext_Alignment_Label","options":[{"value":"LEFT","title":"ProGallery_NewInfo_Icons_Ext_Alignment_Left","icon":"horizontal_left"},{"value":"CENTER","title":"ProGallery_NewInfo_Icons_Ext_Alignment_Center","icon":"alignment_center"},{"value":"RIGHT","title":"ProGallery_NewInfo_Icons_Ext_Alignment_Right","icon":"horizontal_right"}],"type":"OPTIONS","default":"LEFT","thumbnailsSize":"SMALL","controller":"THUMBNAILS"},"controllers_layoutParams_internal_info_SocialButtonsHorizontalAlignment":{"key":"controllers_layoutParams_internal_info_SocialButtonsHorizontalAlignment","title":"ProGallery_NewInfo_Icons_Alignment_Label","options":[{"value":"LEFT","title":"ProGallery_NewInfo_Icons_Alignment_Left","icon":"horizontal_left"},{"value":"CENTER","title":"ProGallery_NewInfo_Icons_Alignment_Center","icon":"alignment_center"},{"value":"RIGHT","title":"ProGallery_NewInfo_Icons_Alignment_Right","icon":"horizontal_right"}],"type":"OPTIONS","default":"LEFT","thumbnailsSize":"SMALL","controller":"THUMBNAILS"},"layoutParams_info_placement":{"key":"layoutParams_info_placement","title":"Native_ProGallery_Settings_Text_Placement","controller":"THUMBNAILS","options":[{"title":"","value":"BELOW","icon":"infoPosition_below"},{"title":"","value":"ABOVE","icon":"infoPosition_above"},{"title":"","value":"RIGHT","icon":"infoPosition_right"},{"title":"","value":"LEFT","icon":"infoPosition_left"},{"title":"","value":"OVERLAY","icon":"infoPosition_onImage"},{"title":"","value":"ALTERNATE_HORIZONTALLY","icon":"infoPosition_alternateHorizontally"},{"title":"","value":"ALTERNATE_VERTICALLY","icon":"infoPosition_alternateVertically"}],"type":"OPTIONS","default":"OVERLAY"},"controllers_layoutParams_info_allowTitle":{"key":"controllers_layoutParams_info_allowTitle","title":"Native_ProGallery_Settings_Text_ShowTitle","type":"BOOLEAN","default":false},"controllers_layoutParams_info_allowDescription":{"key":"controllers_layoutParams_info_allowDescription","title":"Native_ProGallery_Settings_Text_ShowDescription","type":"BOOLEAN","default":false},"controllers_layoutParams_info_allowTitleAndDescription":{"key":"controllers_layoutParams_info_allowTitleAndDescription","title":"Native_ProGallery_Settings_Text","type":"CHECKBOX","options":[{"title":"Native_ProGallery_Settings_Text_Title","value":"controllers_layoutParams_info_allowTitle"},{"title":"Native_ProGallery_Settings_Text_Description","value":"controllers_layoutParams_info_allowDescription"}],"controller":"CHECKBOX","default":""},"controllers_layoutParams_info_verticalPadding":{"key":"controllers_layoutParams_info_verticalPadding","title":"Native_ProGallery_Settings_Text_Padding_Vertical","type":"NUMBER","min":0,"max":50,"default":0,"unit":"px"},"controllers_layoutParams_info_horizontalPadding":{"key":"controllers_layoutParams_info_horizontalPadding","title":"Native_ProGallery_Settings_Text_Padding_Horizontal","type":"NUMBER","min":0,"max":50,"default":0,"unit":"px"},"controllers_layoutParams_info_verticalAlignment":{"key":"controllers_layoutParams_info_verticalAlignment","title":"Native_ProGallery_Settings_Text_Alignment_Vertical","type":"OPTIONS","controller":"THUMBNAILS","thumbnailsSize":"SMALL","options":[{"title":"","value":"START","icon":"vertical_top"},{"title":"","value":"CENTER","icon":"vertical_center"},{"title":"","value":"END","icon":"vertical_bottom"}],"default":"CENTER"},"controllers_layoutParams_info_horizontalAlignment":{"key":"controllers_layoutParams_info_horizontalAlignment","title":"Native_ProGallery_Settings_Text_Alignment_Horizontal","type":"OPTIONS","controller":"THUMBNAILS","thumbnailsSize":"SMALL","options":[{"title":"","value":"START","icon":"horizontal_left"},{"title":"","value":"CENTER","icon":"alignment_center"},{"title":"","value":"END","icon":"horizontal_right"}],"default":"CENTER"},"layoutParams_info_sizeUnits":{"key":"layoutParams_info_sizeUnits","title":"Native_ProGallery_Settings_TextArea_Size","options":[{"value":"PERCENT","title":"Native_ProGallery_Settings_Text_Size_Percentage"},{"value":"PIXEL","title":"Native_ProGallery_Settings_Text_Size_Pixels"}],"type":"OPTIONS","controller":"RADIO","default":"PIXEL"},"layoutParams_info_height":{"key":"layoutParams_info_height","title":"Native_ProGallery_Settings_TextArea_Size_Height","type":"NUMBER","min":0,"max":800,"default":200,"unit":"px"},"controllers_layoutParams_info_width_pixel":{"key":"controllers_layoutParams_info_width_pixel","title":"Native_ProGallery_Settings_TextArea_Size_Width","type":"NUMBER","min":0,"max":1000,"default":200,"unit":"px"},"controllers_layoutParams_info_width_percent":{"key":"controllers_layoutParams_info_width_percent","title":"Native_ProGallery_Settings_TextArea_Size_Width","type":"NUMBER","min":0,"max":90,"default":50,"unit":"%"},"behaviourParams_item_overlay_hoveringBehaviour":{"key":"behaviourParams_item_overlay_hoveringBehaviour","title":"Native_ProGallery_Settings_Text_Overlay_New","options":[{"value":"APPEARS","title":"Native_ProGallery_Settings_Text_Overlay_Appears"},{"value":"DISAPPEARS","title":"Native_ProGallery_Settings_Text_Overlay_Disappears"},{"value":"NO_CHANGE","title":"Native_ProGallery_Settings_Text_Overlay_AlwaysShow"},{"value":"NEVER_SHOW","title":"Native_ProGallery_Settings_Text_Overlay_NeverShow"}],"type":"OPTIONS","default":"NEVER_SHOW"},"controllers_behaviourParams_item_overlay_overlayType":{"key":"controllers_behaviourParams_item_overlay_overlayType","title":"Native_ProGallery_Settings_FullOrPartialOverlay","options":[{"value":"FULL","title":"Native_ProGallery_Settings_Text_Overlay_Full"},{"value":"PARTIAL","title":"Native_ProGallery_Settings_Text_Overlay_Partial"}],"type":"OPTIONS","default":"FULL"},"behaviourParams_item_overlay_sizeUnits":{"key":"behaviourParams_item_overlay_sizeUnits","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Size_Set","options":[{"value":"PERCENT","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Size_Percentage"},{"value":"PIXEL","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Size_Pixel"}],"type":"OPTIONS","controller":"RADIO","default":"PERCENT","noBottomDivider":true},"controllers_behaviourParams_item_overlay_enabled":{"key":"controllers_behaviourParams_item_overlay_enabled","title":"Native_ProGallery_Layout_Overlay_Header","type":"TOGGLED_SECTION","default":true,"isExperimental":false},"controllers_layoutParams_info_newInfo_external_enabled":{"key":"controllers_layoutParams_info_newInfo_external_enabled","title":"Native_ProGallery_Layout_NewInfoAroundImage","type":"TOGGLED_SECTION","default":true,"isExperimental":false},"controllers_behaviourParams_item_overlay_size_percent":{"key":"controllers_behaviourParams_item_overlay_size_percent","title":"","type":"NUMBER","min":0,"max":100,"default":100,"unit":"%"},"controllers_behaviourParams_item_overlay_size_pixel":{"key":"controllers_behaviourParams_item_overlay_size_pixel","title":"","type":"NUMBER","min":0,"max":1000,"default":100,"unit":"px"},"behaviourParams_item_overlay_position":{"key":"behaviourParams_item_overlay_position","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Label","description":"Native_ProGallery_Settings_Text_Overlay_Tooltip","options":[{"value":"LEFT","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Left"},{"value":"RIGHT","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Right"},{"value":"BOTTOM","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Bottom"},{"value":"TOP","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Top"},{"value":"CENTERED_VERTICALLY","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Center_Vertical"},{"value":"CENTERED_HORIZONTALLY","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Center_Horizontal"}],"type":"OPTIONS","default":"BOTTOM"},"behaviourParams_item_overlay_padding":{"key":"behaviourParams_item_overlay_padding","title":"ProGallery_Settings_Design_Overlay_Padding","type":"NUMBER","min":0,"max":200,"default":0,"unit":"px"},"behaviourParams_item_overlay_hoverAnimation":{"key":"behaviourParams_item_overlay_hoverAnimation","title":"Native_ProGallery_Settings_Text_Overlay_Hover_New","controller":"THUMBNAILS","noBottomDivider":true,"options":[{"value":"NO_EFFECT","title":"Native_ProGallery_Settings_Text_Overlay_Hover_NoEffect","emptyState":true},{"value":"EXPAND","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Expand","icon":"overlay_expand"},{"value":"SLIDE_UP","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Slide_Up","icon":"overlay_slideUp"},{"value":"SLIDE_RIGHT","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Slide_Right","icon":"overlay_slideRight"},{"value":"SLIDE_DOWN","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Slide_Down","icon":"overlay_slideDown"},{"value":"SLIDE_LEFT","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Slide_Left","icon":"overlay_slideLeft"}],"type":"OPTIONS","default":"NO_EFFECT"},"controllers_behaviourParams_item_overlay_hoverAnimationBehavior":{"key":"controllers_behaviourParams_item_overlay_hoverAnimationBehavior","title":"Native_ProGallery_Animation_HoverOverlay_Title","description":"Native_ProGallery_Animation_HoverOverlay_Tooltip","options":[{"value":"APPEARS","title":"Native_ProGallery_Animation_HoverOverlay_Option1"},{"value":"DISAPPEARS","title":"Native_ProGallery_Animation_HoverOverlay_Option2"}],"type":"OPTIONS","default":"APPEARS"},"behaviourParams_item_threeDimensionalScene_playTrigger":{"key":"behaviourParams_item_threeDimensionalScene_playTrigger","title":"Native_ProGallery_Settings_3D_Play_Trigger","options":[{"value":"HOVER","title":"Native_ProGallery_Settings_3D_Play_Trigger_Hover"},{"value":"CLICK","title":"Native_ProGallery_Settings_3D_Play_Trigger_Click"},{"value":"AUTO","title":"Native_ProGallery_Settings_3D_Play_Trigger_Auto"}],"type":"OPTIONS","default":"AUTO"},"controllers_experimental_useNewInfo":{"isExperimental":true,"key":"controllers_experimental_useNewInfo","title":"Native_ProGallery_Layout_UseNewInfo","type":"OPTIONS","default":"false","thumbnailsSize":"SMALL","options":[{"value":"false","title":"Native_ProGallery_Layout_UseNewInfoNo"},{"value":"true","title":"Native_ProGallery_Layout_UseNewInfoYes"}]},"controllers_stylableOptions_arrowContainer":{"key":"controllers_stylableOptions_arrowContainer","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::gallery-arrows","title":"Native_ProGallery_Design_Option9_Arrow_Container"},"controllers_stylableOptions_arrowContainerHover":{"key":"controllers_stylableOptions_arrowContainerHover","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::gallery-arrows:hover","title":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_arrowIcon":{"key":"controllers_stylableOptions_arrowIcon","type":"STYLABLE","features":["ICON"],"selector":".root::gallery-arrows::gallery-arrows-icon","title":"Native_ProGallery_Design_Option8_Arrow_Icon"},"controllers_stylableOptions_arrowIconHover":{"key":"controllers_stylableOptions_arrowIconHover","type":"STYLABLE","features":["ICON"],"selector":".root::gallery-arrows:hover::gallery-arrows-icon","title":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_showManageMedia":{"key":"controllers_showManageMedia","title":"NOT SUPPORTED Force show manage media","type":"BOOLEAN","default":false,"description":"this is to allow specific galleries to show the manage media"}}'),Fr=JSON.parse('{"$schema":"./ProGallery.options.schema.json","LAYOUT":{"key":"LAYOUT","title":"Native_ProGallery_Layout_ChooseLayout_Header","type":"SECTION"},"IMAGE_DISPLAY":{"key":"IMAGE_DISPLAY","title":"Native_ProGallery_Settings_ImageDisplay_Header","type":"SECTION"},"DESIGN_SETTINGS":{"key":"DESIGN_SETTINGS","title":"Native_ProGallery_Layout_DesignSettings_Header","type":"SECTION"},"SLIDESHOW_SETTINGS":{"key":"SLIDESHOW_SETTINGS","title":"ProGallery_Layout_SlideshowSection_Title","type":"SECTION"},"THUMBNAILS_SETTINGS":{"key":"THUMBNAILS_SETTINGS","title":"Native_ProGallery_Layout_Thumbnails_Header","type":"SECTION"},"INFO_SETTINGS":{"key":"INFO_SETTINGS","title":"Native_ProGallery_Settings_InfoSettings_Header","type":"SECTION"},"ADVANCED":{"key":"ADVANCED","title":"Native_ProGallery_Settings_Advanced_Header","type":"SECTION"},"OVERLAY":{"key":"OVERLAY","title":"Native_ProGallery_Layout_Overlay_Header","type":"SECTION"},"OVERLAY_POSITION":{"key":"OVERLAY_POSITION","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position","type":"SECTION"},"IMAGE_LOADING":{"key":"IMAGE_LOADING","title":"Native_ProGallery_Settings_ImageLoading_Header","type":"SECTION"},"VIDEO":{"key":"VIDEO","title":"ProGallery_Settings_Video_Label","type":"SECTION"},"MEDIA_PERMISSION":{"key":"MEDIA_PERMISSION","title":"Native_ProGallery_Settings_MediaProtection_Header","type":"SECTION"},"FULLSCREEN_INFO_SETTINGS":{"key":"FULLSCREEN_INFO_SETTINGS","title":"Native_ProGallery_Expand_InfoSettings_Header","type":"SECTION"},"FULLSCREEN_VIEWING_SETTINGS":{"key":"FULLSCREEN_VIEWING_SETTINGS","title":"Native_ProGallery_Expand_ViewingSettings_Header","type":"SECTION"},"FULLSCREEN_BACKGROUND_FILTERS":{"key":"FULLSCREEN_BACKGROUND_FILTER_S","title":"Native_ProGallery_Expand_BackgroundFilters_Header","type":"SECTION"},"ARROWS_DESIGN_SETTINGS":{"key":"ARROWS_DESIGN_SETTINGS","title":"Native_ProGallery_Layout_NavigationArrows_Header","type":"SECTION"},"GALLERY_DESIGN":{"key":"GALLERY_DESIGN","title":"Native_ProGallery_Design_Header_Gallery","type":"SECTION"},"TEXT_ICONS_BUTTONS_DESIGN":{"key":"TEXT_ICONS_BUTTONS_DESIGN","title":"Native_ProGallery_Design_Header_Info","type":"SECTION"},"NAVIGATION_DESIGN":{"key":"NAVIGATION_DESIGN","title":"Native_ProGallery_Design_Header_Navigation","type":"SECTION"},"ANIMATION_HOVER_OVERLY":{"key":"ANIMATION_HOVER_OVERLY","title":"Native_ProGallery_Behaviors_OverlayTextAnimation_Header","type":"SECTION"},"ANIMATION_HOVER_IMAGE":{"key":"ANIMATION_HOVER_IMAGE","title":"Native_ProGallery_Behaviors_ImageAnimation_Header","type":"SECTION"},"ANIMATION_SCROLL_ANIMATION":{"key":"ANIMATION_SCROLL_ANIMATION","title":"Native_ProGallery_Behaviors_SlideAnimation_Header","type":"SECTION"}}'),zr=JSON.parse('{"controllers_layoutParams_infoElementOptions_external_order":{"key":"controllers_layoutParams_infoElementOptions_external_order","enabledKey":"controllers_layoutParams_infoElementOptions_external_enabled","title":"Around Image","type":"DRAGGABLE","options":[{"type":"section","key":"top","label":"top"},{"type":"section","key":"middle","label":"middle"},{"type":"section","key":"bottom","label":"bottom"},{"type":"item","key":"Title","label":"Title","defaultSection":"top"},{"type":"item","key":"Description","label":"Description","defaultSection":"top"},{"type":"item","key":"CustomButton","label":"CustomButton","defaultSection":"top"},{"type":"item","key":"Social","label":"Social","defaultSection":"bottom"}],"enabledKeyDefualt":"","controller":"DRAGGABLE","default":"top,Title,Description,CustomButton,middle,bottom,Social"},"controllers_layoutParams_infoElementOptions_internal_order":{"key":"controllers_layoutParams_infoElementOptions_internal_order","enabledKey":"controllers_layoutParams_infoElementOptions_internal_enabled","title":"On Image","type":"DRAGGABLE","options":[{"type":"section","key":"top","label":"top"},{"type":"section","key":"middle","label":"middle"},{"type":"section","key":"bottom","label":"bottom"},{"type":"item","key":"Title","label":"Title","defaultSection":"top"},{"type":"item","key":"Description","label":"Description","defaultSection":"top"},{"type":"item","key":"CustomButton","label":"CustomButton","defaultSection":"top"},{"type":"item","key":"Social","label":"Social","defaultSection":"bottom"}],"enabledKeyDefualt":"","controller":"DRAGGABLE","default":"top,Title,Description,CustomButton,middle,bottom,Social"},"controllers_layoutParams_infoElementOptions_external_enabled":{"key":"controllers_layoutParams_infoElementOptions_external_enabled","type":"TEXT","title":"","default":""},"controllers_layoutParams_infoElementOptions_internal_enabled":{"key":"controllers_layoutParams_infoElementOptions_internal_enabled","type":"TEXT","title":"","default":""},"controllers_fullscreen_allowTitleExpand":{"key":"controllers_fullscreen_allowTitleExpand","title":"Native_ProGallery_Expand_InfoSettings_WhatInfo_Title","type":"BOOLEAN","default":true,"noBottomDivider":true,"textLabel":"Native_ProGallery_Expand_InfoSettings_WhatInfo_Label"},"controllers_fullscreen_allowDescriptionExpand":{"key":"controllers_fullscreen_allowDescriptionExpand","title":"Native_ProGallery_Expand_InfoSettings_WhatInfo_Description","type":"BOOLEAN","default":true,"noBottomDivider":true},"controllers_fullscreen_allowLinkExpand":{"key":"controllers_fullscreen_allowLinkExpand","title":"Native_ProGallery_Expand_InfoSettings_WhatInfo_Link","type":"BOOLEAN","default":false},"controllers_fullscreen_whenToShowInfo":{"key":"controllers_fullscreen_whenToShowInfo","title":"Native_ProGallery_Expand_InfoSettings_WhenInfo_Label","type":"OPTIONS","controller":"RADIO","thumbnailsSize":"MEDIUM","default":"ALWAYS","options":[{"value":"ALWAYS","title":"Native_ProGallery_Expand_InfoSettings_WhenInfo_Always"},{"value":"ON_TOGGLE","title":"Native_ProGallery_Expand_InfoSettings_WhenInfo_Icon"}],"description":"Native_ProGallery_Expand_InfoSettings_WhenInfo_Tooltip"},"controllers_fullscreen_expandInfoPosition":{"key":"controllers_fullscreen_expandInfoPosition","title":"Native_ProGallery_Expand_InfoSettings_WhereInfo_Label","type":"OPTIONS","default":"SIDE","options":[{"value":"BOTTOM","title":"Native_ProGallery_Expand_InfoSettings_WhereInfo_Bottom"},{"value":"SIDE","title":"Native_ProGallery_Expand_InfoSettings_WhereInfo_Side"}]},"controllers_fullscreen_showInfoExpandButton":{"key":"controllers_fullscreen_showInfoExpandButton","title":"MISSING_Toggle info","description":"MISSING_Toggle info","type":"BOOLEAN","default":false},"controllers_fullscreen_allowFullscreenExpand":{"key":"controllers_fullscreen_allowFullscreenExpand","title":"Native_ProGallery_Expand_ViewingSettings_FullScreen","description":"Native_ProGallery_Expand_ViewingSettings_FullScreen_Tooltip","type":"BOOLEAN","default":true},"controllers_fullscreen_fullscreenLoop":{"key":"controllers_fullscreen_fullscreenLoop","title":"Native_ProGallery_Expand_ViewingSettings_Loop","description":"Native_ProGallery_Expand_ViewingSettings_Loop_Tooltip","type":"BOOLEAN","default":false},"controllers_fullscreen_allowFullscreenMagnifyImage":{"key":"controllers_fullscreen_allowFullscreenMagnifyImage","title":"Native_ProGallery_Expand_ViewingSettings_Magnifying","description":"Native_ProGallery_Expand_ViewingSettings_Magnifying_Tooltip","type":"BOOLEAN","default":false},"controllers_fullscreen_fullscreenMagnificationLevel":{"key":"controllers_fullscreen_fullscreenMagnificationLevel","title":"Native_ProGallery_Expand_ViewingSettings_MagnifyingSize","description":"MISSING_Magnification value","type":"NUMBER","min":1,"max":5,"step":1,"default":2},"controllers_fullscreen_fullscreenMagnificationPercent":{"key":"controllers_fullscreen_fullscreenMagnificationPercent","title":"Native_ProGallery_Expand_ViewingSettings_MagnifyingSize","type":"NUMBER","min":150,"max":500,"step":50,"unit":"percent","default":200},"controllers_fullscreen_backgroundBlurFilter":{"key":"controllers_fullscreen_backgroundBlurFilter","title":"Native_ProGallery_Expand_BackgroundFilters_Blur","description":"MISSING_Background blur filter","type":"NUMBER","min":1,"max":20,"step":1,"default":1},"controllers_fullscreen_backgroundGrayscaleFilter":{"key":"controllers_fullscreen_backgroundGrayscaleFilter","title":"Native_ProGallery_Expand_BackgroundFilters_Grayscale","description":"MISSING_Background Grayscale filter","type":"BOOLEAN","default":false},"FULLSCREEN_PREVIEW":{"key":"FULLSCREEN_PREVIEW","title":"Native_ProGallery_Expand_ExpandPreview_Header","type":"VIEWPORT","default":"","component":"FULLSCREEN"},"FULLSCREEN_CTA":{"key":"FULLSCREEN_CTA","title":"ProGallery_Settings_ClickOptions_Expand_Customize","type":"FULLSCREEN_PREVIEW_CTA","default":""},"controllers_stylableOptions_gallery":{"key":"controllers_stylableOptions_gallery","type":"STYLABLE","features":["FILL","SHADOW","CORNERS"],"selector":".root","title":"Native_ProGallery_Design_Option1_Container"},"controllers_stylableOptions_container":{"key":"controllers_stylableOptions_container","type":"STYLABLE","features":["FILL","SHADOW","CORNERS"],"selector":".root::pro-gallery-container","title":"Native_ProGallery_Design_Option1_Container"},"controllers_stylableOptions_item":{"key":"controllers_stylableOptions_item","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::item","title":"Native_ProGallery_Design_Option2_Item","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_itemHover":{"key":"controllers_stylableOptions_itemHover","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::item:hover","title":"Native_ProGallery_Design_Option2_Item","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_itemOverlay":{"key":"controllers_stylableOptions_itemOverlay","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::item::overlay","title":"Native_ProGallery_Design_Option2_Item_Overlay","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_itemOverlayHover":{"key":"controllers_stylableOptions_itemOverlayHover","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::item:hover::overlay","title":"Native_ProGallery_Design_Option2_Item_Overlay","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_itemContent":{"key":"controllers_stylableOptions_itemContent","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::item::content","title":"Native_ProGallery_Design_Option2_Item_Content","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_itemContentHover":{"key":"controllers_stylableOptions_itemContentHover","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::item:hover::content","title":"Native_ProGallery_Design_Option2_Item_Content","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_innerTitle":{"key":"controllers_stylableOptions_innerTitle","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item-hover-info-title","title":"Native_ProGallery_Design_Option6_Hover_Title"},"controllers_stylableOptions_innerDescription":{"key":"controllers_stylableOptions_innerDescription","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item-hover-info-description","title":"Native_ProGallery_Design_Option7_Hover_Description"},"controllers_stylableOptions_externalTitle":{"key":"controllers_stylableOptions_externalTitle","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item-external-info-title","title":"Native_ProGallery_Design_Option4_Ext_Title"},"controllers_stylableOptions_externalDescription":{"key":"controllers_stylableOptions_externalDescription","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item-external-info-description","title":"Native_ProGallery_Design_Option5_Ext_Description"},"controllers_stylableOptions_innerTitleRegular":{"key":"controllers_stylableOptions_innerTitleRegular","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item::item-hover-info-title","title":"Native_ProGallery_Design_Option6_Hover_Title","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_innerTitleHover":{"key":"controllers_stylableOptions_innerTitleHover","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item:hover::item-hover-info-title","title":"Native_ProGallery_Design_Option6_Hover_Title","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_innerDescriptionRegular":{"key":"controllers_stylableOptions_innerDescriptionRegular","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item::item-hover-info-description","title":"Native_ProGallery_Design_Option7_Hover_Description","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_innerDescriptionHover":{"key":"controllers_stylableOptions_innerDescriptionHover","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item:hover::item-hover-info-description","title":"Native_ProGallery_Design_Option7_Hover_Description","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_externalTitleRegular":{"key":"controllers_stylableOptions_externalTitleRegular","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item::item-external-info-title","title":"Native_ProGallery_Design_Option4_Ext_Title","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_externalTitleHover":{"key":"controllers_stylableOptions_externalTitleHover","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item:hover::item-external-info-title","title":"Native_ProGallery_Design_Option4_Ext_Title","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_externalDescriptionRegular":{"key":"controllers_stylableOptions_externalDescriptionRegular","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item::item-external-info-description","title":"Native_ProGallery_Design_Option5_Ext_Description","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_externalDescriptionHover":{"key":"controllers_stylableOptions_externalDescriptionHover","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item:hover::item-external-info-description","title":"Native_ProGallery_Design_Option5_Ext_Description","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_loadMore":{"key":"controllers_stylableOptions_loadMore","type":"STYLABLE","features":["TEXT","FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::loadmore","title":"Native_ProGallery_Design_Option3_LoadMoreBtn"},"controllers_stylableOptions_arrowContainer":{"key":"controllers_stylableOptions_arrowContainer","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::gallery-arrows","title":"Native_ProGallery_Design_Option9_Arrow_Container","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_arrowContainerHover":{"key":"controllers_stylableOptions_arrowContainerHover","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::gallery-arrows:hover","title":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_arrowIcon":{"key":"controllers_stylableOptions_arrowIcon","type":"STYLABLE","features":[{"type":"ICON","noResizing":true,"hideShownToggle":true}],"selector":".root::gallery-arrows::gallery-arrows-icon","title":"Native_ProGallery_Design_Option8_Arrow_Icon","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_arrowIconHover":{"key":"controllers_stylableOptions_arrowIconHover","type":"STYLABLE","features":[{"type":"ICON","noResizing":true,"hideShownToggle":true}],"selector":".root::gallery-arrows:hover::gallery-arrows-icon","title":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_innerCustomButtonRegular":{"key":"controllers_stylableOptions_innerCustomButtonRegular","type":"STYLABLE","features":["TEXT","FILL","BORDERS","SHADOW","CORNERS","LAYOUT"],"selector":".root::item::item-hover-custom-button","title":"Native_ProGallery_Design_Option12_Button","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_innerCustomButtonHover":{"key":"controllers_stylableOptions_innerCustomButtonHover","type":"STYLABLE","features":["TEXT","FILL","BORDERS","SHADOW","CORNERS","LAYOUT"],"selector":".root::item:hover::item-hover-custom-button","title":"Native_ProGallery_Design_Option12_Button","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_externalCustomButtonRegular":{"key":"controllers_stylableOptions_externalCustomButtonRegular","type":"STYLABLE","features":["TEXT","FILL","BORDERS","SHADOW","CORNERS","LAYOUT"],"selector":".root::item::item-external-custom-button","title":"Native_ProGallery_Design_Option13_Button_Ext","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_externalCustomButtonHover":{"key":"controllers_stylableOptions_externalCustomButtonHover","type":"STYLABLE","features":["TEXT","FILL","BORDERS","SHADOW","CORNERS","LAYOUT"],"selector":".root::item:hover::item-external-custom-button","title":"Native_ProGallery_Design_Option13_Button_Ext","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_externalInfoSocialButtonRegular":{"key":"controllers_stylableOptions_externalInfoSocialButtonRegular","type":"STYLABLE","features":["ICON",{"type":"LAYOUT_MARGIN","selector":".root::item::item-external-info-social-button-container"}],"selector":".root::item::item-external-info-social-button","title":"Native_ProGallery_Design_Option11_SocialIcons_Ext","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_externalInfoSocialButtonHover":{"key":"controllers_stylableOptions_externalInfoSocialButtonHover","type":"STYLABLE","features":["ICON",{"type":"LAYOUT_MARGIN","selector":".root::item::item-external-info-social-button-container"}],"selector":".root::item:hover::item-external-info-social-button","title":"Native_ProGallery_Design_Option11_SocialIcons_Ext","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_internalInfoSocialButtonRegular":{"key":"controllers_stylableOptions_internalInfoSocialButtonRegular","type":"STYLABLE","selector":".root::item::item-internal-info-social-button","features":["ICON",{"type":"LAYOUT_MARGIN","selector":".root::item::item-internal-info-social-button-container"}],"title":"Native_ProGallery_Design_Option10_SocialIcons","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_internalInfoSocialButtonHover":{"key":"controllers_stylableOptions_internalInfoSocialButtonHover","type":"STYLABLE","features":["ICON",{"type":"LAYOUT_MARGIN","selector":".root::item::item-internal-info-social-button-container"}],"selector":".root::item:hover::item-internal-info-social-button","title":"Native_ProGallery_Design_Option10_SocialIcons","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_showManageMedia":{"key":"controllers_showManageMedia","title":"NOT_SUPPORTED_FORCE_SHOW_MANAGE_MEDIA","type":"BOOLEAN","default":false,"noBottomDivider":true,"textLabel":"this is not supported, will force the manage media gfpp to show"}}');delete Hr.$schema,delete Br.$schema,delete Fr.$schema,delete zr.$schema;const Ur={...Hr,...zr},Wr={...Object.values(Ur).reduce(((e,t)=>({...e,[t.key]:t.default})),{})},jr=e=>({...Wr,...e}),Vr={START:"left",CENTER:"center",END:"right"},$r={START:"flex-start",CENTER:"center",END:"flex-end"};var Yr=function(e,t){return i=>{const r=function(e,t){const i=t.options.filter((t=>-1===e.indexOf(t.key)));if(0===i.length)return e;const r=e.split(",");return i.forEach((e=>{if("top"===e.defaultSection){const t=r.findIndex((e=>"middle"===e));r.splice(t,0,e.key)}else if("middle"===e.defaultSection){const t=r.findIndex((e=>"bottom"===e));r.splice(t,0,e.key)}else r.push(e.key)})),r.join(",")}(i,e),o=function(e,t){const i=t.options.filter((e=>"section"===e.type)),r=i.reduce(((e,t)=>({...e,[t.key]:[]})),{});let o=i[0];const a=e.split(",");for(const e of a){const t=i.findIndex((t=>t.key===e));-1===t?r[o.key].push(e):o=i[t]}return r}(r,e);return t(o)}};const Kr={NEW_EXTERNAL_INFO_TOGGLE:"controllers_layoutParams_info_newInfo_external_enabled",WIDTH_IN_PIXEL:"controllers_layoutParams_info_width_pixel",WIDTH_IN_PERCENT:"controllers_layoutParams_info_width_percent",VERTICAL_ALIGN:"controllers_layoutParams_info_verticalAlignment",HORIZONTAL_ALIGN:"controllers_layoutParams_info_horizontalAlignment",VERTICAL_PADDING:"controllers_layoutParams_info_verticalPadding",HORIZONTAL_PADDING:"controllers_layoutParams_info_horizontalPadding",ALLOW_TITLE:"controllers_layoutParams_info_allowTitle",ALLOW_DESCRIPTION:"controllers_layoutParams_info_allowDescription",ALLOW_TITLE_AND_DESCRIPTION:"controllers_layoutParams_info_allowTitleAndDescription",EXTERNAL_MASTER_INFO_ENABLED:"controllers_layoutParams_infoElementOptions_external_enabled",EXTERNAL_MASTER_INFO_ORDER:"controllers_layoutParams_infoElementOptions_external_order",EXTERNAL_INFO_PLACEMENT:"controllers_layoutParams_external_info_placement",ORIGINAL_INFO_PLACEMENT:"layoutParams_info_placement",USE_NEW_INFO:"controllers_experimental_useNewInfo",INTERNAL_MASTER_INFO_ENABLED:"controllers_layoutParams_infoElementOptions_internal_enabled",INTERNAL_MASTER_INFO_ORDER:"controllers_layoutParams_infoElementOptions_internal_order",EXTERNAL_SOCIAL_BUTTONS_ALIGNMENT:"controllers_layoutParams_external_info_SocialButtonsHorizontalAlignment",INTERNAL_SOCIAL_BUTTONS_ALIGNMENT:"controllers_layoutParams_internal_info_SocialButtonsHorizontalAlignment",EXTERNAL_INFO_HEIGHT:"layoutParams_info_height"},[Xr,qr]=ro(Kr.EXTERNAL_MASTER_INFO_ORDER,Kr.EXTERNAL_MASTER_INFO_ENABLED),[Jr,Qr]=ro(Kr.INTERNAL_MASTER_INFO_ORDER,Kr.INTERNAL_MASTER_INFO_ENABLED);function eo(e,t){return Yr(t,(t=>{const i={top:t.top.join(","),middle:t.middle.join(","),bottom:t.bottom.join(",")};return(0,Rt.FX)({infoElementsOptions:{[e]:{order:i}}})}))}function to(e){return t=>{const i={socialParams:{horizontalAlignment:t.toLowerCase()}};return(0,Rt.FX)({infoElementsOptions:{[e]:i}})}}function io(e){return t=>{try{const i=t.split(","),r={enabled:{Title:i.includes("Title"),Description:i.includes("Description"),CustomButton:i.includes("CustomButton"),Social:i.includes("Social")},socialParams:{options:{loveButton:!1,allowSocial:!1,loveCounter:!1,allowDownload:!0}}};return(0,Rt.FX)({infoElementsOptions:{[e]:r}})}catch(e){return console.log("error parsing json",e),{}}}}function ro(e,t){return[{key:e,enabledKey:t,title:e.includes("internal")?"On Image":"Around Image",type:"DRAGGABLE",options:[{type:"section",key:"top",label:"top"},{type:"section",key:"middle",label:"middle"},{type:"section",key:"bottom",label:"bottom"},{type:"item",key:"Title",label:"Title",defaultSection:"top"},{type:"item",key:"Description",label:"Description",defaultSection:"top"},{type:"item",key:"CustomButton",label:"CustomButton",defaultSection:"top"},{type:"item",key:"Social",label:"Social",defaultSection:"bottom"}],enabledKeyDefualt:"",controller:"DRAGGABLE",default:"top,Title,Description,CustomButton,middle,bottom,Social"},{key:t,type:"TEXT",title:"",default:""}]}const oo={[Kr.EXTERNAL_INFO_PLACEMENT]:(e,t)=>{if("true"===t.controllers_experimental_useNewInfo){const t=!0?e:"OVERLAY";return{[Ut.Z.layoutParams.info.placement]:t}}return{[Ut.Z.layoutParams.info.placement]:t.layoutParams_info_placement}},[Kr.WIDTH_IN_PIXEL]:(e,t)=>{if("PIXEL"===t[Ut.Z.layoutParams.info.sizeUnits]&&void 0!==e)return{[Ut.Z.layoutParams.info.width]:e}},[Kr.EXTERNAL_MASTER_INFO_ENABLED]:io("external"),[Kr.EXTERNAL_MASTER_INFO_ORDER]:eo("external",Xr),[Kr.INTERNAL_MASTER_INFO_ENABLED]:io("internal"),[Kr.INTERNAL_MASTER_INFO_ORDER]:eo("internal",Jr),[Kr.WIDTH_IN_PERCENT]:(e,t)=>{if("PERCENT"===t[Ut.Z.layoutParams.info.sizeUnits]&&void 0!==e)return{[Ut.Z.layoutParams.info.width]:e}},[Kr.HORIZONTAL_ALIGN]:(e,t)=>{if(void 0!==e)return{galleryHorizontalAlign:$r[e],galleryTextAlign:Vr[e]}},[Kr.ALLOW_TITLE_AND_DESCRIPTION]:e=>({controllers_layoutParams_info_allowTitle:e.includes(Kr.ALLOW_TITLE),controllers_layoutParams_info_allowDescription:e.includes(Kr.ALLOW_DESCRIPTION)}),[Kr.EXTERNAL_SOCIAL_BUTTONS_ALIGNMENT]:to("external"),[Kr.INTERNAL_SOCIAL_BUTTONS_ALIGNMENT]:to("internal"),[Kr.NEW_EXTERNAL_INFO_TOGGLE]:(e,t)=>"true"===t.controllers_experimental_useNewInfo?e?{}:{[Ut.Z.layoutParams.info.placement]:"OVERLAY"}:{}},ao={OVERLAY_ENABLED:"controllers_behaviourParams_item_overlay_enabled",OVERLAY_TYPE:"controllers_behaviourParams_item_overlay_overlayType",SIZE_IN_PIXEL:"controllers_behaviourParams_item_overlay_size_pixel",SIZE_IN_PERCENT:"controllers_behaviourParams_item_overlay_size_percent",HOVER_ANIMATION_BEHAVIOR:"controllers_behaviourParams_item_overlay_hoverAnimationBehavior"};const so={[ao.OVERLAY_ENABLED]:(e,t)=>function(e){return"true"===e.controllers_experimental_useNewInfo}(t)?{[Ut.Z.behaviourParams.item.overlay.hoveringBehaviour]:e?"ALWAYS_SHOW":"NEVER_SHOW"}:{},[ao.OVERLAY_TYPE]:e=>{if("FULL"===e)return{[Ut.Z.behaviourParams.item.overlay.sizeUnits]:"PERCENT",[Ut.Z.behaviourParams.item.overlay.size]:100,[Ut.Z.behaviourParams.item.overlay.position]:"BOTTOM",[Ut.Z.behaviourParams.item.overlay.padding]:0}},[ao.SIZE_IN_PIXEL]:(e,t)=>{const i=t[Ut.Z.behaviourParams.item.overlay.sizeUnits],r=t[ao.OVERLAY_TYPE];if("PIXEL"===i&&"PARTIAL"===r&&void 0!==e)return{[Ut.Z.behaviourParams.item.overlay.size]:e}},[ao.SIZE_IN_PERCENT]:(e,t)=>{const i=t[Ut.Z.behaviourParams.item.overlay.sizeUnits],r=t[ao.OVERLAY_TYPE];if("PERCENT"===i&&"PARTIAL"===r&&void 0!==e)return{[Ut.Z.behaviourParams.item.overlay.size]:e}}},no={VOLUME:"controllers_optionsMap_behaviourParams_item_video_volume"},lo={[no.VOLUME]:e=>({[Ut.Z.behaviourParams.item.video.volume]:e?1:0})},uo={GALLERY_RATIO_METHOD:"controllers_layoutParams_structure_galleryRatio_method",GALLERY_RATIO_VALUE:"controllers_layoutParams_structure_galleryRatio_value",GALLERY_THUMBNAILS_MARGIN_TO_GALLERY:"controllers_layoutParams_thumbnails_marginToGallery",GALLERY_WIDTH_METHOD:"controllers_layoutParams_structure_imageWidth_method",GALLERY_WIDTH_VALUE:"controllers_layoutParams_structure_numberOfDisplayedItems",GALLERY_CONTAINERS_RATIO:"layoutParams_crop_ratios"},co={[uo.GALLERY_RATIO_VALUE]:(e,t)=>"FIXED"===t[uo.GALLERY_RATIO_METHOD]?{[Ut.Z.layoutParams.structure.galleryRatio.value]:1/e}:{[Ut.Z.layoutParams.structure.galleryRatio.value]:0},[uo.GALLERY_WIDTH_VALUE]:(e,t)=>"RESPONSIVE"===t[uo.GALLERY_WIDTH_METHOD]?{[Ut.Z.layoutParams.crop.ratios]:[`${(100/e).toFixed(2)}%/100%`]}:{},[uo.GALLERY_THUMBNAILS_MARGIN_TO_GALLERY]:e=>({[Ut.Z.layoutParams.thumbnails.marginToGallery]:e})},ho={ALLOW_TITLE:"controllers_fullscreen_allowTitleExpand",ALLOW_DESCRIPTION:"controllers_fullscreen_allowDescriptionExpand",ALLOW_LINK:"controllers_fullscreen_allowLinkExpand",WHEN_TO_SHOW_INFO:"controllers_fullscreen_whenToShowInfo",EXPAND_INFO_POSITION:"controllers_fullscreen_expandInfoPosition",SHOW_INFO_BUTTON:"controllers_fullscreen_showInfoExpandButton",DEFAULT_SHOW_INFO_BUTTON:"controllers_fullscreen_defaultShowInfoExpand",ALLOW_FULLSCREEN_EXPAND:"controllers_fullscreen_allowFullscreenExpand",LOOP:"controllers_fullscreen_fullscreenLoop",ALLOW_MAGNIFY_IMAGE:"controllers_fullscreen_allowFullscreenMagnifyImage",MAGNIFICATION_LEVEL:"controllers_fullscreen_fullscreenMagnificationLevel",MAGNIFICATION_PERCENT:"controllers_fullscreen_fullscreenMagnificationPercent",BACKGROUND_BLUR_FILTER:"controllers_fullscreen_backgroundBlurFilter",BACKGROUND_GRAYSCAL_EFILTER:"controllers_fullscreen_backgroundGrayscaleFilter",FULLSCREEN_PREVIEW:"FULLSCREEN_PREVIEW",FULLSCREEN_ITEM_CLICK:"controllers_fullscreen_itemClick",FULLSCREEN_CTA:"FULLSCREEN_CTA"},mo={[ho.WHEN_TO_SHOW_INFO]:e=>{const t="ON_TOGGLE"===e;return{[ho.SHOW_INFO_BUTTON]:t,[ho.DEFAULT_SHOW_INFO_BUTTON]:!t}},[ho.MAGNIFICATION_PERCENT]:e=>{const t=e/100;return{[ho.MAGNIFICATION_LEVEL]:t}},[Ut.Z.behaviourParams.item.clickAction]:e=>({[ho.FULLSCREEN_ITEM_CLICK]:e.toLowerCase()})},po={INFO:oo,OVERLAY:so,VIDEO:lo,GALLERY:co,FULLSCREEN:mo};function go(e,t){void 0===t&&(t=["INFO","OVERLAY","VIDEO","GALLERY","FULLSCREEN"]);let i={...e};return t.forEach((t=>{Object.keys(po[t]).forEach((r=>{const o=e[r];if(void 0!==o){const e=po[t][r];"function"==typeof e?i={...i,...e(o,i)||{}}:i[e]=o}}))})),i}const yo={allowDownload:!1,allowSocial:!1,loveButton:!1,isStoreGallery:!1,loveCounter:!0,allowTitle:!0,allowExifExpand:!1,addToCartButtonText:"",galleryAlignExpand:"left",mobileSwipeAnimation:"EXPAND",enableFullscreenVideoPlaceholder:!0,allowBackgroundGradient:!1,backgroundGradientDegrees:180,stylingParams_itemResolutionMode:"SCALED_DOWN",layoutParams_navigationArrows_position:"MOUSE_CURSOR"},_o={[Ut.Z.layoutParams.crop.enable]:!1,[Ut.Z.layoutParams.targetItemSize.unit]:"SMART",[Ut.Z.behaviourParams.item.secondaryMedia.trigger]:d.Z.behaviourParams_item_secondaryMedia_trigger.HOVER};const vo=(e,t)=>{let i={...e};if(e[Ut.Z.behaviourParams.item.clickAction]){const t={MAGNIFY:"MAGNIFY",LINK:"LINK",NOTHING:"NOTHING",EXPAND:"ACTION",FULLSCREEN:"ACTION",ACTION:"ACTION"};i[Ut.Z.behaviourParams.item.clickAction]=t[e[Ut.Z.behaviourParams.item.clickAction]]||"NOTHING"}if(e[Ut.Z.layoutParams.crop.ratios]){const t=[Number(e[Ut.Z.layoutParams.crop.ratios])];i[Ut.Z.layoutParams.crop.ratios]=t}i=go(i,["INFO","OVERLAY","VIDEO","GALLERY"]);const r=function(e){return"true"===(null==e?void 0:e.controllers_experimental_useNewInfo)}(i);r?_o.EXPERIMENTALallowParallelInfos=!0:d.Z.isLayout("SLIDESHOW")(i)&&(i[Ut.Z.behaviourParams.item.overlay.hoveringBehaviour]=d.Z.behaviourParams_item_overlay_hoveringBehaviour.NEVER_SHOW),"NO_CHANGE"===i[Ut.Z.behaviourParams.item.overlay.hoveringBehaviour]&&(i[Ut.Z.behaviourParams.item.overlay.hoveringBehaviour]=d.Z.behaviourParams_item_overlay_hoveringBehaviour.ALWAYS_SHOW),"EDIT"===t&&i[Ut.Z.layoutParams.navigationArrows.position]===d.Z.layoutParams_navigationArrows_position.MOUSE_CURSOR&&(i[Ut.Z.layoutParams.navigationArrows.position]=d.Z.layoutParams_navigationArrows_position.ON_GALLERY);return{...i,..._o}},fo=(e,t)=>{let i={...e};if(t[Ut.Z.behaviourParams.item.clickAction]){const e={EXPAND:"EXPAND",FULLSCREEN:"FULLSCREEN"};i[Ut.Z.behaviourParams.item.clickAction]=e[t[Ut.Z.behaviourParams.item.clickAction]]||"EXPAND"}i=go(i,["FULLSCREEN"]);const r=Object.entries(i).filter((e=>{let[t]=e;return t.startsWith("controllers_fullscreen_")})).reduce(((e,t)=>{let[i,r]=t;return e[i.replace("controllers_fullscreen_","")]=r,e}),yo);return r};var Po=(e,t)=>{const i=vo(e,t);return{options:i,fullscreenOverrides:fo(i,e)}};const bo="ProGallery";function Io(e){const t=(0,i.useRef)(null),[r,o]=(0,i.useState)(e.compProperties),a=(0,i.useMemo)((()=>function(e,t,i){const r=new Map,o=i?"--"+t+"-"+bo+"-":"--"+bo+"-",a=Object.keys(Ur);return function(){if(!e.current)return{hasChanges:!1,options:{}};const t={};let i=!1;const s=window.getComputedStyle(e.current);for(const e of a){const a=""+o+e,n=s.getPropertyValue(a);if(!n)continue;if(n===r.get(e))continue;const l=Mr(n);r.set(e,n),i=!0,t[e]=l}return{hasChanges:i,options:t}}}(t,e.styleId,e.isStylableSkin)),[e.styleId,e.isStylableSkin]),s=(0,i.useCallback)((()=>{const{hasChanges:t,options:i}=a();t&&o((e=>({...e,...i}))),e.setIsKnownOptions(!0)}),[a,e]),n=(0,i.useMemo)((()=>Zr(s,100)),[s]);Nr({elem:t.current||null,callback:n});const{options:l,fullscreenOverrides:u}=(0,i.useMemo)((()=>{const t={...jr(r),...e.imageOnClickAction&&{itemClick:e.imageOnClickAction},...(0,Rt.FX)(e.manualStyleParams||{}),...e.editorOverrides};return Po(t,e.viewMode)}),[r,e.viewMode,e.imageOnClickAction,e.manualStyleParams,e.editorOverrides]);return{options:l,rawOptions:r,fullscreenOverrides:u,forceUpdate:s,elementRef:t}}const So={desktop:{width:980,height:500},mobile:{width:320,height:500}},Eo={desktop:{width:980,height:10},mobile:{width:320,height:10}},Oo=(e,t)=>{const{editorLayoutHeight:r,editorLayoutWidth:o,options:a,deviceType:s,viewMode:n,skinClasses:l}=e,u=(()=>{const[e,t]=(0,i.useState)(!0);return(0,i.useEffect)((()=>{t(!1)}),[]),e})(),{responsive:c}=a,{mobile:h,desktop:m}="SITE"===n?So:Eo,d="mobile"===s,p=d?h.width:m.width,g=d?h.height:m.height,y={isDefaultContainer:!0,width:c?p:o,height:c?g:r},[_,v]=(0,i.useState)(y),[f,P]=(0,i.useState)(_.height),b=(0,i.useRef)(null);(0,i.useEffect)((()=>P(r||f)),[r]);const I=(0,i.useCallback)((()=>{var e,i;v({width:null==(e=b.current)?void 0:e.clientWidth,height:null==(i=b.current)?void 0:i.clientHeight}),t(!0)}),[b,t]),S=(0,i.useMemo)((()=>Zr(I,100)),[I]);Nr({ref:b,callback:S});const E=c?{}:{height:f},O=u?l["container-prerender"]:"";return{setHeight:e=>{P(e),c&&v({..._,height:e})},container:_,containerRef:b,containerStyle:E,containerClassName:O}},To=(e,a)=>{const{id:s,items:n,wixSDKItems:l,itemsSrc:u="organizeMedia",className:c,customClassNames:h=[],stylableClassName:m,forceState:d={},onItemClicked:p=()=>{},onCurrentItemChanged:g=()=>{},onGetMoreItems:y=()=>{},onGalleryNavigationStart:_=()=>{},isExternalPagination:v,totalItemsCount:f,onMouseEnter:P,onMouseLeave:b,imageOnClickAction:I,isQaMode:S,fullNameCompType:E,shouldUseNewInfoElements:O,viewMode:T,deviceType:L,styleId:w,manualStyleParams:A,isInFirstFold:Z,positionAbsoluteForFiniteHeightGalleries:x,partToPreview:C,skinClasses:N,isStylableSkin:R}=e,[D,M]=(0,i.useState)(!1),[G,k]=(0,i.useState)(!1),{setHeight:H,container:B,containerRef:F,containerStyle:z,containerClassName:U}=Oo(e,M),W=function(e){const[t,r]=(0,i.useState)(0);return(0,i.useEffect)((()=>{let t=null;const i=new IntersectionObserver((e=>{let[i]=e;if(i.isIntersecting&&t){const e=t.getBoundingClientRect();r(e.top+window.pageYOffset)}}),{root:null,threshold:0,rootMargin:"0px"});if(e.current){t=e.current;const o=t.getBoundingClientRect();r(o.top+window.pageYOffset),i.observe(t)}return()=>{t&&i.unobserve(t)}}),[e]),t}(F),j=t=>{var i;const r=null==(i=e.experiments)?void 0:i[t];return!!r&&"false"!==r},V=Gr(j);O&&(V.newInfoElements=O);const{options:$,rawOptions:Y,fullscreenOverrides:K,elementRef:X,forceUpdate:q}=Io({compProperties:e.options,isExperimentOpen:j,styleId:w,setIsKnownOptions:k,viewMode:T||"SITE",experimentalFeatures:V,manualStyleParams:A,imageOnClickAction:I,..."EDIT"===T&&{editorOverrides:{alwaysShowHover:R?Rr(d):["overlay-regular","overlay-hover"].includes(C||"")}},isStylableSkin:R}),{variantResizeWatcherRef:J}=(e=>{const t=(0,i.useRef)(null),r=(0,i.useCallback)((()=>{e()}),[e]);return Nr({ref:t,callback:r}),{variantResizeWatcherRef:t}})(q),[Q,ee]=(0,i.useState)([]);r().useImperativeHandle(a,(()=>({addItems:e=>{ee(e)},next:()=>{null==ie||ie.next()},previous:()=>{null==ie||ie.previous()},navigateNextEnabled:()=>null==ie?void 0:ie.navigateNextEnabled(),navigatePreviousEnabled:()=>null==ie?void 0:ie.navigatePreviousEnabled(),currentIndex:()=>null==ie?void 0:ie.currentIndex(),triggerItemClick:e=>null==ie?void 0:ie.triggerItemClick(void 0,{itemIndex:e}),navigateToIndex:(e,t)=>null==ie?void 0:ie.navigateToIndex(e,t)})));const te=(0,i.useMemo)((()=>("wixSDK"===u?l:n.map(Dr))||[]),[n,l,u]);O&&(V.newInfoElements=O);const[ie,re]=(0,i.useState)(void 0),oe=o().ITEM_CLICKED((e=>{p({itemIndex:e.idx,type:e.type})})).CURRENT_ITEM_CHANGED((e=>{g({itemIndex:e.idx,type:e.type})})).NEED_MORE_ITEMS((e=>{y({from:e})})).GALLERY_NAVIGATION_START((e=>{_({animationDuration:e.scrollParams.durationInMS,continuousScroll:e.scrollParams.isContinuousScrolling,autoplay:!e.scrollParams.isManual,currentIndex:e.scrollParams.itemIdx,scrollDirection:e.scrollParams.scrollDirection,slideTransition:e.scrollParams.slideTransition})})).NAVIGATION_API_READY((e=>{re(e)})).done(),ae=!(G&&D||"SITE"!==T);return r().createElement("div",t()({id:s,className:Ar(N.container,c,U),ref:F,style:z},((e,t)=>e?{"data-comp":t,"data-aid":t}:{})(S,E),(e=>Object.entries(e).reduce(((e,[t,i])=>(t.includes("data-")&&(e[t]=i),e)),{}))(e),{"data-preview":C}),r().createElement("div",{className:Ar(N.root,m,Cr(kr.root,...h)),onMouseEnter:P,onMouseLeave:b,ref:X},r().createElement("div",{id:"variant-resize-watcher",ref:J,style:{"--variant-count":R?"var(--"+w+"-ProGallery-variant_count)":"var(--ProGallery-variant_count)"}}),r().createElement(Or,{isPrerenderMode:ae,experimentalFeatures:V,id:s,items:te,itemsSrc:u,container:{...B,scrollBase:W},eventsListener:oe,scrollingElement:F.current,deviceType:L,isMobile:"mobile"===L,staticMediaUrls:void 0,viewMode:T,setLayoutHeightImp:H,flattenOptions:$,flattenFullscreenOverrides:K,manualOptions:A,enableFullscreen:(se=Y,[Lr.behaviourParams_item_clickAction.EXPAND,Lr.behaviourParams_item_clickAction.FULLSCREEN].includes(se[Ut.Z.behaviourParams.item.clickAction]||"")||!1),isInFirstFold:Z,isExternalPagination:v,addedItems:Q||[],totalItemsCount:f,positionAbsoluteForFiniteHeightGalleries:x})));var se};var Lo=r().forwardRef(To),wo=u(37757);const Ao=(e,i)=>{const o={container:(0,wo.st)(wo.classes.container),root:(0,wo.st)(wo.classes.root)};return r().createElement(Lo,t()({},e,{skinClasses:o,ref:i}))};const Zo={ProGallery_Default:{component:r().forwardRef(Ao)}}}(),c}()})); //# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/thunderbolt/rb_wixui.thunderbolt[ProGallery_Default].87b7abc3.bundle.min.js.map